mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-03 20:13:02 +08:00
873 B
873 B
###NOTE: This works for Android ONLY!!!
- There is the global function
heapSnapshot();
- The function will save a V8's heap dump file in the application private files folder - e.g.
data/data/com.telerik.tns.unittestapp/files/xxx.xxx.heapsnapshot
- Open command prompt and go the location of your ADB - e.g. [PathToADT]/sdk/platform-tools/
- Run
adb shell - Go to
/data/data/com.telerik.tns.unittestapp/files/ - Run
lsto list the files in the folder and find the *.heapsnapshot file(s). - Run
exitto return back to the command prompt - Run
adb pull /data/data/com.telerik.tns.unittestapp/files/xxx.xxx.heapsnapshot LocalPath/To/Snapshot - Open Chrome Developer Tools (Ctrl + Shift + I within Chrome)
- Go to
Profilestab on the top of the tools window - Select
Record Heap Allocationsand load the locally saved *.heapsnapshot file.