diff options
author | Charles Baylis <charles.baylis@linaro.org> | 2017-12-13 18:17:42 +0000 |
---|---|---|
committer | Charles Baylis <charles.baylis@linaro.org> | 2017-12-13 18:17:42 +0000 |
commit | bf9251abf9594533909d34dc93be7d6961ef3255 (patch) | |
tree | 29d1dbc98ffa5d890dd4e712a1a9ef8d9a3fa7a0 | |
parent | 638a19d225e937e93c7bb42a465cd7a9f72f0203 (diff) |
Allow clicking on PIDs in profiles to enable PID highlighting.
Change-Id: I6484eac883ffb5401bd1565fce009b7b96511767
-rw-r--r-- | perf-utilization.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perf-utilization.pl b/perf-utilization.pl index 9a132c2..8bd825f 100644 --- a/perf-utilization.pl +++ b/perf-utilization.pl @@ -90,6 +90,11 @@ span.hoverprofile { z-index: 1; } +.clickablepid:hover { + cursor:pointer; + background: rgba(255,255,255,0.4); +} + th.rotate { writing-mode: vertical-lr; transform:rotate(190deg); @@ -114,6 +119,7 @@ th.rotate { } .pidtask { + cursor:pointer; min-width: 8em; width: 8em; overflow: hidden; @@ -240,7 +246,7 @@ for (my $i=0;$i<$#cpu;$i++) foreach my $pid (sort keys %{$pids{$c}}) { my $cpu = sprintf("%.1f%%", 100 * $pids{$c}->{$pid} / $max_counts); - $str .= qq(<tr><td class="alignr">$pid</td><td>$task{$pid}</td><td class="alignr">$cpu</td></tr>); + $str .= qq(<tr><td class="alignr clickablepid" onclick="do_click($pid)">$pid</td><td>$task{$pid}</td><td class="alignr">$cpu</td></tr>); } $str .= "</table>"; $str .= qq(</span>); |