summaryrefslogtreecommitdiff
path: root/src/bootchart/svg.c
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2014-04-25 00:50:51 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-04-24 19:21:51 -0400
commit49e5b2a93339869703d581a06f8d903f8371ab60 (patch)
treebb5322e6f0d6f664389c716b71a03afaa5fa00c0 /src/bootchart/svg.c
parente6c474723dc66cd4765fd09453d6b48bd5905ba4 (diff)
bootchart: add control group option
Diffstat (limited to 'src/bootchart/svg.c')
-rw-r--r--src/bootchart/svg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c
index 7438e472fb..a53f98a941 100644
--- a/src/bootchart/svg.c
+++ b/src/bootchart/svg.c
@@ -1093,12 +1093,13 @@ static void svg_ps_bars(void) {
w = starttime;
/* text label of process name */
- svg(" <text x=\"%.03f\" y=\"%.03f\"><![CDATA[%s]]> [%i]<tspan class=\"run\">%.03fs</tspan></text>\n",
+ svg(" <text x=\"%.03f\" y=\"%.03f\"><![CDATA[%s]]> [%i]<tspan class=\"run\">%.03fs</tspan> %s</text>\n",
time_to_graph(w - graph_start) + 5.0,
ps_to_graph(j) + 14.0,
ps->name,
ps->pid,
- (ps->last->runtime - ps->first->runtime) / 1000000000.0);
+ (ps->last->runtime - ps->first->runtime) / 1000000000.0,
+ arg_show_cgroup ? ps->cgroup : "");
/* paint lines to the parent process */
if (ps->parent) {
/* horizontal part */