Using Safari Web Inspector to debug a memory leak?

FYI, we are debugging our mobile hybrid application, which was developed using angularJS 1.4.2 and ionic structure 1.2.4 with WKWebView.

A few snapshots below show events before and after. Based on the webkit memory debugging article , a snapshot will show live JavaScript objects that have not yet been GC.
Snapshot of series of action taken

Figure 2 shows the default status of page A and controller A. snapshot2

Screenshot 5 is still on the same page, but after doing some calculations and creating a base PDF string from PDFTron to view it in UIWebview. snapshot5

Figure 10 showing after leaving page A and going to page C with controller C. snapshot10

2 10, base64 . Comparison of snapshots 2 and 10

:

  • , snapShot , ?
  • live javascript , , , , , ?
  • ?
  • AngularJS , . , base64 ?
+4
1

, .

  • , .
  • , , , , .
  • , , . - , - , .
  • base64 . , , . base64 .

, . :

  • A - . B, B A.
  • .
  • 1 .
  • .
  • 1 4, .

* , . . 5 6 1 2, GC, .

. , . , . $$ . , , - .

0

Source: https://habr.com/ru/post/1671210/


All Articles