Skip to content

lisa.analysis.base: Fix TraceAnalysisBase.cache()

Douglas Raillard requested to merge douglas-raillard-arm/lisa:_pr0000072 into main

FIX

Cache based on the class of the instance the methods end up being bound to, so that the methods are allowed to depend on constant class attributes in their internals

Without that fix, a decorated method like PixelAnalysis.df_power_meter() that relies on the EMETER_CHAN_NAMES class attribute and no parameter end up caching the result for the first call, and subsequent calls will not take into account the fact they are called on a Pixel6Analysis object or a Pixel9Analysis.

Closes #2196 (closed)

Edited by Douglas Raillard

Merge request reports

Loading