Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: docs/memory-infra/heap_profiler.md

Issue 2494063002: Move memory docs to docs/memory-infra (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Heap Profiling with MemoryInfra 1 # Heap Profiling with MemoryInfra
2 2
3 As of Chrome 48, MemoryInfra supports heap profiling. The core principle is 3 As of Chrome 48, MemoryInfra supports heap profiling. The core principle is
4 a solution that JustWorks™ on all platforms without patching or rebuilding, 4 a solution that JustWorks™ on all platforms without patching or rebuilding,
5 intergrated with the chrome://tracing ecosystem. 5 intergrated with the chrome://tracing ecosystem.
6 6
7 [TOC] 7 [TOC]
8 8
9 ## How to Use 9 ## How to Use
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 4. In the analysis view, cells marked with a triple bar icon (☰) contain heap 23 4. In the analysis view, cells marked with a triple bar icon (☰) contain heap
24 dumps. Select such a cell. 24 dumps. Select such a cell.
25 25
26 ![Cells containing a heap dump][cells-heap-dump] 26 ![Cells containing a heap dump][cells-heap-dump]
27 27
28 5. Scroll down all the way to _Heap Details_. 28 5. Scroll down all the way to _Heap Details_.
29 29
30 6. Pinpoint the memory bug and live happily ever after. 30 6. Pinpoint the memory bug and live happily ever after.
31 31
32 [memory-infra]: memory_infra.md 32 [memory-infra]: README.md
33 [m-purple]: https://storage.googleapis.com/chromium-docs.appspot.com/d7bd f4d16204c293688be2e5a0bcb2bf463dbbc3 33 [m-purple]: https://storage.googleapis.com/chromium-docs.appspot.com/d7bd f4d16204c293688be2e5a0bcb2bf463dbbc3
34 [cells-heap-dump]: https://storage.googleapis.com/chromium-docs.appspot.com/a24d 80d6a08da088e2e9c8b2b64daa215be4dacb 34 [cells-heap-dump]: https://storage.googleapis.com/chromium-docs.appspot.com/a24d 80d6a08da088e2e9c8b2b64daa215be4dacb
35 35
36 ### Native stack traces 36 ### Native stack traces
37 37
38 By default heap profiling collects pseudo allocation traces, which are based 38 By default heap profiling collects pseudo allocation traces, which are based
39 on trace events. I.e. frames in allocation traces correspond to trace events 39 on trace events. I.e. frames in allocation traces correspond to trace events
40 that were active at the time of allocations, and are not real function names. 40 that were active at the time of allocations, and are not real function names.
41 However, you can build a special Linux / Android build that will collect 41 However, you can build a special Linux / Android build that will collect
42 real C/C++ stack traces. 42 real C/C++ stack traces.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 memory allocated by PartitionAlloc alone, the total renderer memory increase was 159 memory allocated by PartitionAlloc alone, the total renderer memory increase was
160 around 72 MiB.) 160 around 72 MiB.)
161 161
162 ![Diff of The Verge before and after loading ads][diff] 162 ![Diff of The Verge before and after loading ads][diff]
163 163
164 [pseudo-stack]: https://storage.googleapis.com/chromium-docs.appspot. com/058e50350836f55724e100d4dbbddf4b9803f550 164 [pseudo-stack]: https://storage.googleapis.com/chromium-docs.appspot. com/058e50350836f55724e100d4dbbddf4b9803f550
165 [break-down-by-backtrace]: https://storage.googleapis.com/chromium-docs.appspot. com/ec61c5f15705f5bcf3ca83a155ed647a0538bbe1 165 [break-down-by-backtrace]: https://storage.googleapis.com/chromium-docs.appspot. com/ec61c5f15705f5bcf3ca83a155ed647a0538bbe1
166 [break-down-by-type]: https://storage.googleapis.com/chromium-docs.appspot. com/2236e61021922c0813908c6745136953fa20a37b 166 [break-down-by-type]: https://storage.googleapis.com/chromium-docs.appspot. com/2236e61021922c0813908c6745136953fa20a37b
167 [type-then-backtrace]: https://storage.googleapis.com/chromium-docs.appspot. com/c5367dde11476bdbf2d5a1c51674148915573d11 167 [type-then-backtrace]: https://storage.googleapis.com/chromium-docs.appspot. com/c5367dde11476bdbf2d5a1c51674148915573d11
168 [diff]: https://storage.googleapis.com/chromium-docs.appspot. com/802141906869cd533bb613da5f91bd0b071ceb24 168 [diff]: https://storage.googleapis.com/chromium-docs.appspot. com/802141906869cd533bb613da5f91bd0b071ceb24
OLDNEW
« no previous file with comments | « docs/memory-infra/adding_memory_infra_tracing.md ('k') | docs/memory-infra/heap_profiler_internals.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698