Capture C++ stacks and markers from the Android UI thread
Categories
(Core :: Gecko Profiler, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox85 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(1 file)
At the moment, we capture Java / Kotlin stacks for the Android UI thread. However, that Java code can call into Gecko C++ code, and sometimes that Gecko C++ code can take up time. In the "Java Main Thread", we only see GeckoThread.runUiThreadCallback
for the duration of that C++ code (example profile: https://share.firefox.dev/3lsVhpE).
It would be great if we could capture C++ call stacks from the Java UI thread as well, so that we can see what's truly going on during runUiThreadCallback
.
Assignee | ||
Comment 1•4 years ago
|
||
Oh, we also currently don't capture markers that we emit from C++ code on the UI thread.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
This allows getting profiler markers from that thread, and also shows some limited C++ call stack information.
The stacks aren't complete because we don't know the address at which the thread's stack starts.
Comment 4•4 years ago
|
||
bugherder |
Description
•