Create a range selection by clicking on a screenshot
See original GitHub issueAs a ~PM stumbling through a profile~ user investigating a responsiveness issue, I want to be able to select the nsRefreshDriver::Tick
for a screenshot, so that I can quickly and accurately focus on the code that produced the frame.
I can currently select nsRefreshDriver::Tick
by double clicking on the entry in the Stack Chart. It would nice if I could create the range selection by, for example, clicking a screenshot. This would allow me to remain on my current view and to more quickly and accurately create the selection than trying to eyeball the correct Tick below (and starting slightly before) a screenshot.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Dynamically display cell range contents in a picture
The contents of the cell range is displayed in the picture. To format the picture or do other operations, right click the picture...
Read more >How to take a screenshot of part of your screen - ContractSafe
Click and drag on your screen to select the part of your screen you want to capture. A screenshot of the screen region...
Read more >Use the Camera tool in Excel to create dynamic screenshots
In the Choose Commands from box, select All Commands from the drop-down menu. Scroll down the list below the drop down and select...
Read more >Convert Selected Range into an Image Using Macros In Excel
Convert Selected Range into an Image in Excel - Create your own ... With just one click, you have now created a screenshot...
Read more >Using Excel's Hidden Camera to Create Live Screenshots
Select the cells you want to capture in a screenshot. Click on Camera on the Quick Access Toolbar. The mouse pointer will change...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think your outline looks good.
Just a quick precision from looking at the code: I think we’ll have to change a bit
HoverPreview
too. Indeed, I believe the new code you’ll add will be inScreenshots
. Therefore I suggest thatfindScreenshotAtMouse
will be moved toScreenshots
: thenScreenshots
will retrieve the current hovered screenshot, and pass directly aScreenshotPayload
toHoverPreview
.About the 2 remarks from Greg:
He meant that, to find the new range, you might need to look at the next screenshot. I think that should be OK to look at
start
andstart + dur
which should already take that into account, but Greg’s comment was that this might not be the case.This is only a warning that the last or first screenshot in a track may behave differently. So just take care that they work. Again I think that
start
andstart+dur
should already take that into account, but please just double-check these cases.Hope this helps!
Since the above comment, I have made some major changes.
render
method but then essentially I will have to do something like:and then pass
payload
toHoverPreview
. 2) Havepayload
instate
and then pass it toHoverPreview
.I prefer the first one over the second one because I think
payload
will just be redundant in state because it is derived fromoffsetX
.This is what is left in
HoverPreview
after movingfindScreenshotAtMouse
toScreenshots
.