summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-07-19 10:36:00 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2018-08-02 11:36:03 +0100
commit33f47ff4d64bd3996995dc5493deee26294e3aa3 (patch)
tree493d2c4d8a31d4114ccfefb66939747f5125f689 /scripts
parentb5963a39f7d34e5ad084e8d6f44d4e8d7eec46f2 (diff)
trace.pl: Bring back timeline stacking
Bring back the button which expands/stacks overlapping timeline boxes. We default to no stacking, but sometimes expanding the view can be useful, especially with deep request pipelines. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/trace.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/trace.pl b/scripts/trace.pl
index 59f6d32d..1924333e 100755
--- a/scripts/trace.pl
+++ b/scripts/trace.pl
@@ -935,6 +935,7 @@ Boxes are in format 'ctx-id/seqno'.
<p>
Use Ctrl+scroll-action to zoom-in/out and scroll-action or dragging to move around the timeline.
</p>
+<button onclick="toggleStacking()">Toggle overlap stacking</button>
</td>
</tr>
</table>
@@ -1284,6 +1285,12 @@ print <<ENDHTML;
// Create a Timeline
var timeline = new vis.Timeline(container, items, groups, options);
+
+ function toggleStacking() {
+ options.stack = !options.stack;
+ options.stackSubgroups = !options.stackSubgroups;
+ timeline.setOptions(options);
+ }
ENDHTML
print <<ENDHTML;