diff options
author | Vincent Guittot <vincent.guittot@stericsson.com> | 2010-12-22 09:38:31 +0100 |
---|---|---|
committer | Amit Kucheria <amit.kucheria@linaro.org> | 2011-03-25 13:06:33 +0200 |
commit | 798b98ad272a25946b9c1eda2ab99bcb05eb7a7c (patch) | |
tree | eb284521a6b7fa9ede6608dd3640e40f4011a827 | |
parent | d2ccaf4129432df71902048979cd346b2d1c28fd (diff) |
update cstate statlinaro
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
-rw-r--r-- | timechart/plot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/timechart/plot.py b/timechart/plot.py index 12fcc79..9b76012 100644 --- a/timechart/plot.py +++ b/timechart/plot.py @@ -12,7 +12,7 @@ from enthought.kiva.traits.kiva_font_trait import KivaFont from enthought.enable.api import black_color_trait, KeySpec from model import tcProject -from colors import get_aggcolor_by_id +from colors import get_aggcolor_by_id, get_colorname_by_id import tools from numpy import linspace,arange,amin,amax from math import log @@ -118,7 +118,7 @@ class RangeSelectionTools(HasTraits): i+=1 for cstate in sorted([i for i in cpu_stat.keys()]): part = cpu_stat[cstate] - tmp += "C%d:%dus %02.f%%\n"%(cstate,part,part*100/(self.end-self.start)) + tmp += "%s:%dus %02.f%%\n"%(get_colorname_by_id(cstate),part,part*100/(self.end-self.start)) self.c_states = tmp self.plot.proj.process_stats(self.start,self.end) self._timer.Stop() |