question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add zoom/trim/pan functionality to see details in a long benchmark

See original GitHub issue

It’s pretty common for interfaces like this to have a feature where you can select a snippet of the timeline and “zoom in” on it. Y axis stays the same, X axis increases scale so details can be seen.

It’s something users will probably expect based on experience with dev tools and similar, and seems like an important feature since Doctor can run for any time period: run it for longer than, say, 20 seconds, and (depending on screen size) events become hard to distinguish. It would also enable other potential enhancements such as loading and comparing different benchmarks on the same scale.

Should be animated so the user can clearly see what is happening as the x-axis stretches (or on zoom out, contracts) and finer-grain X-axis ticks appear (or disappear).

I like Andreas’s approach of using event emitters to separate actions from the UI, I’d suggest we do it in two steps to avoid getting bogged down in UI design detail questions before we’re in a good position to test ideas out:

  1. Implement a callable event like scaleXAxis( startTimestamp, endTimestamp, duration ) (duration uses default setting if unset, can be 0 for instant). This can be done before / while we make decisions on the UI and would make it easy to compare and test UI options.
  2. Add UI for this e.g. drag to select a region to zoom in on, some intuitive way to cancel a zoom, click to auto-zoom on the the highlighted problem area, etc.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
AlanSlcommented, Aug 13, 2018

There’s some ongoing work around the upper size limits for Clinic profiles, I think it’d make sense to revisit this after that when we know what are the largest / longest profiles we intend to reasonable support.

This is a feature that every Clinic tool could use (Doctor, Bubbleprof and Flame) so I think after we’ve got some certainty on upper limits and completed other high priority long tasks (e.g. Clinic Flame redesign) we should set aside a little time to implement this feature consistently in all three tools.

0reactions
BridgeARcommented, Aug 10, 2018

This could likely be looked at again. Doctor is out quite some while.

Read more comments on GitHub >

github_iconTop Results From Across the Web

benchmark/user_guide.md at main · google/benchmark
Context is output on stderr and the tabular data on stdout. Example tabular output looks like: Benchmark Time(ns) CPU(ns) Iterations ...
Read more >
Writing a Macrobenchmark
To benchmark an app (called the target of the macro benchmark), that app must be profileable , which enables reading detailed trace information ......
Read more >
Benchmarking in Golang: Improving function performance
Improve your Golang application's performance by running benchmarks with built-in tools like the testing package and the go tool.
Read more >
An Introduction to Benchmarking Your Go Programs
In this tutorial, we look at how you can effectively benchmark your go program.
Read more >
Introduction to benchmarks in Go
Benchmarks are functions that test the performance of Go code, they are included the testing package of the standard Go library and thus ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found