[TIMOB-12145] Android: JavaScript heap dumps
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | High |
Status | Closed |
Resolution | Done |
Resolution Date | 2020-03-11T02:48:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Ingo Muschenetz |
Assignee | Joshua Quick |
Created | 2012-12-21T20:12:36.000+0000 |
Updated | 2020-03-11T02:48:56.000+0000 |
Description
Discovering the source of memory leaks caused by references in JavaScript
is currently difficult. To help locate the source of such leaks we
can use a heap dump to inspect the reference graph of the VM current state.
This task is to expose a way to request such a dump and serialize
it to the SDCARD so it can be pulled down through ADB.
https://github.com/appcelerator/titanium_mobile/pull/9277
Probably resolved in TIMOB-24723
Steps for taking js heap snapshot in Ti SDK 7: 1. run
ti build
with--debug-host localhost:8989
2. openchrome-devtools://
link in chrome/chromium 3. inMemory
tab clickTake snapshot
As [~s.volkov] mentioned, this can be done via the Chrome web browser as of Titanium 7.0.0.