Self Samples, Self Cost and Self Time columns are missing data in performance profiler Call tree view.

NEW
Unassigned

Status

()

Firefox
Developer Tools: Performance Tools (Profiler/Timeline)
P2
normal
2 years ago
5 months ago

People

(Reporter: Jukka Jylänki, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [btpp-fix-later])

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
Created attachment 8734064 [details]
no_self_samples.png

STR:
1. Visit https://dl.dropboxusercontent.com/u/40949268/emcc/10kCubes/10kCubes.html
2. Run a performance profile.
3. Open the "Call Tree" view.
4. Expand some of the frames bottom up.

Observed: All non-leaf nodes have zero in their "Self Samples", "Self Cost", and "Self Time" columns.

See the attached screenshot with cells in light red background.
If none of those frames were ever sampled as the youngest stack, then they *should* have self = 0.
(In reply to Nick Fitzgerald [:fitzgen] [⏰PDT; UTC-7] from comment #1)
> If none of those frames were ever sampled as the youngest stack, then they
> *should* have self = 0.

I'm looking at triaging this bug, this looks like expected behavior, correct?
Flags: needinfo?(nfitzgerald)
(Reporter)

Comment 3

2 years ago
Nick, you are probably right. Coming back to this, trying to understand my source of confusion, I did a small test:

My test application is as follows: https://dl.dropboxusercontent.com/u/40949268/emcc/simulate_work/simulate_work.cpp

which is a requestAnimationFrame-based loop, where each tick calls in a linear fashion functions tick() -> foo() -> bar(), where foo() works for 50 milliseconds, and bar() works for 200 milliseconds (4x the time of foo()).

Here's the compiled page: https://dl.dropboxusercontent.com/u/40949268/emcc/simulate_work/simulate_work.html

Looking at the profiler in top-down mode shows as expected:

https://dl.dropboxusercontent.com/u/40949268/emcc/simulate_work/simulate_work_top_down.png

tick to foo to bar, where bar takes up 4x time of foo. However looking at the bottom up view in this page is a bit odd, not sure if this is intended?

https://dl.dropboxusercontent.com/u/40949268/emcc/simulate_work/simulate_work_bottom_up.png

The function bar() does have 31 self samples, and the function foo() does have 11 self samples, but they don't show up in the non-leaf nodes, but only when those functions are presented as leaf nodes. Nick, how does this look to you?
Yeah that does look funky -- there should be some self time there.
Flags: needinfo?(nfitzgerald)
Priority: -- → P2
Whiteboard: [btpp-fix-later]
You need to log in before you can comment on or make changes to this bug.