Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12145] Android: JavaScript heap dumps

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionDone
Resolution Date2020-03-11T02:48:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterIngo Muschenetz
AssigneeJoshua Quick
Created2012-12-21T20:12:36.000+0000
Updated2020-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.

Comments

  1. Sergey Volkov 2017-08-04

    https://github.com/appcelerator/titanium_mobile/pull/9277
  2. Sergey Volkov 2017-11-03

    Probably resolved in TIMOB-24723
  3. Sergey Volkov 2017-12-20

    Steps for taking js heap snapshot in Ti SDK 7: 1. run ti build with --debug-host localhost:8989 2. open chrome-devtools:// link in chrome/chromium 3. in Memory tab click Take snapshot
  4. Joshua Quick 2020-03-11

    As [~s.volkov] mentioned, this can be done via the Chrome web browser as of Titanium 7.0.0.

JSON Source