[TIMOB-12852] Android: Collect profile data for Kroll layer
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android, Core |
| Labels | andoid, performance |
| Reporter | Matt Langston |
| Assignee | Unknown |
| Created | 2013-02-25T22:19:32.000+0000 |
| Updated | 2018-02-28T20:04:08.000+0000 |
Description
There are 15 JNI methods in the Kroll layer of our Android code base that I have instrumented to collect profile data:
V8Function.java (2 JNI calls)
V8Object.java (6 JNI calls)
V8Runtime.java (7 JNI calls)
I will funnel this data through Max's profiler API (TIMOB-12850).
My modifications to V8Function.cpp, V8Object.cpp and V8Runtime.cpp should be in a separate shared library (e.g. libkroll-v8p.so where the "p" is for profile) that is only packaged in the .apk when the user wants to profile their app. I don't know the scope of this work since I don't know if we currently have the infrastructure with studio to support this.
No comments