cr2/run,thermal: read trace file only once
Let the run object read the trace file only once at distribute the data
and the timestamp to the class object in case the trace line contains its
unique word.
Move the function trace_parser_explode_array into class Base as method
explode_array since now each class Base obbject applies the explode
function on its own parsed_data array.
Comparing the old and new trace approach taking a trace file with
1.000.000 entries shows that the new approach takes only half the time
(~6s versus 11s on an otherwise idling Intel(R) Core(TM) i5-3320M CPU @
2.60GHz).
Change-Id: I725652f50372269abc6fd172ddd721723762c8b0
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
3 files changed