Always set NSTexturedBackgroundWindowMask on app windows.
[chromium-blink-merge.git] / tools / deep_memory_profiler / policy.android.webview.json
blobd3611ce84314a06cf6b808d55e0f2cc0ae32c6cc
2   "components": [
3     "second",
4     "mmap-profiler",
5     "mmap-type-profiler",
6     "mmap-tcmalloc",
7     "FROM_HERE_FOR_TOTAL",
8     "mustbezero",
9     "unhooked-absent",
10     "unhooked-ashmem-dalvik-heap",
11     "unhooked-ashmem-dalvik-LinearAlloc",
12     "unhooked-ashmem-dalvik-aux-structure",
13     "unhooked-ashmem-dalvik-bitmap",
14     "unhooked-ashmem-dalvik-other",
15     "unhooked-pvrsrvkm",
16     "unhooked-system-dex",
17     "unhooked-chrome-dex",
18     "unhooked-other-ashmem",
19     "unhooked-anonymous",
20     "unhooked-file-exec-lib-chrome",
21     "unhooked-file-exec",
22     "unhooked-file-nonexec-lib-chrome",
23     "unhooked-file-nonexec",
24     "unhooked-stack",
25     "unhooked-other",
26     "no-bucket",
27     "mmap-v8-heap-newspace",
28     "mmap-v8-heap-coderange",
29     "mmap-v8-heap-pagedspace",
30     "mmap-v8-other",
31     "mmap-gpu-mappedmemorymanager",
32     "mmap-gpu-command-ringbuffer",
33     "mmap-gpu-transfer-ringbuffer",
34     "mmap-gpu-gles2-createbuffer",
35     "mmap-skia-font",
36     "mmap-catch-all",
37     "tc-disk_cache-backing",
38     "tc-disk_cache-other",
39     "tc-sqlite3MemAlloc",
40     "tc-angle",
41     "tc-crypto",
42     "tc-net-iobuffer",
43     "tc-stl-string",
44     "tc-stl-rbtree",
45     "tc-stl-vector",
46     "tc-stl-hashtable",
47     "tc-stl-node",
48     "tc-webcore-fontcache",
49     "tc-skia",
50     "tc-renderobject",
51     "tc-renderstyle",
52     "tc-webcore-sharedbuf",
53     "tc-webcore-XHRcreate",
54     "tc-webcore-XHRreceived",
55     "tc-webcore-docwriter-add",
56     "tc-webcore-node-and-doc",
57     "tc-webcore-node-factory",
58     "tc-webcore-element-wrapper",
59     "tc-webcore-stylepropertyset",
60     "tc-webcore-style-createsheet",
61     "tc-webcore-cachedresource",
62     "tc-webcore-script-execute",
63     "tc-webcore-events-related",
64     "tc-webcore-document-write",
65     "tc-webcore-node-create-renderer",
66     "tc-webcore-render-catch-all",
67     "tc-webcore-setInnerHTML-except-node",
68     "tc-wtf-StringImpl-user-catch-all",
69     "tc-wtf-HashTable-user-catch-all",
70     "tc-webcore-everything-create",
71     "tc-webkit-from-v8-catch-all",
72     "tc-webkit-catch-all",
73     "tc-v8-catch-all",
74     "tc-toplevel-string",
75     "tc-std-treemap",
76     "tc-std-hashmap",
77     "tc-std-vector",
78     "tc-std-other",
79     "tc-catch-all",
80     "tc-unused",
81     "UNTIL_HERE_FOR_TOTAL",
82     "total-exclude-profiler",
83     "total",
84     "absent",
85     "anonymous",
86     "file-exec",
87     "file-nonexec",
88     "stack",
89     "other",
90     "mmap-total-log",
91     "mmap-no-log",
92     "mmap-total-record",
93     "other-total-log",
94     "tc-total-log",
95     "tc-no-log",
96     "tc-total-record",
97     "tc-total"
98   ],
99   "rules": [
100     {
101       "name": "second",
102       "stacktrace": "optional",
103       "allocator": "optional"
104     },
105     {
106       "name": "mmap-profiler",
107       "stacktrace": ".*(ProfilerMalloc|MemoryRegionMap::).*",
108       "allocator": "mmap"
109     },
110     {
111       "name": "mmap-type-profiler",
112       "stacktrace": ".*(TypeProfilerMalloc).*",
113       "allocator": "mmap"
114     },
115     {
116       "name": "mmap-tcmalloc",
117       "stacktrace": ".*(DoAllocWithArena|SbrkSysAllocator::Alloc|MmapSysAllocator::Alloc|LowLevelAlloc::Alloc|LowLevelAlloc::AllocWithArena).*",
118       "allocator": "mmap"
119     },
120     {
121       "name": "FROM_HERE_FOR_TOTAL",
122       "stacktrace": "optional",
123       "allocator": "optional"
124     },
125     {
126       "name": "mustbezero",
127       "stacktrace": "optional",
128       "allocator": "optional"
129     },
130     {
131       "name": "unhooked-absent",
132       "stacktrace": "optional",
133       "allocator": "optional"
134     },
135     {
136       "name": "unhooked-ashmem-dalvik-heap",
137       "mappedpathname": "/dev/ashmem/dalvik-heap.*",
138       "allocator": "unhooked"
139     },
140     {
141       "name": "unhooked-ashmem-dalvik-LinearAlloc",
142       "mappedpathname": "/dev/ashmem/dalvik-LinearAlloc.*",
143       "allocator": "unhooked"
144     },
145     {
146       "name": "unhooked-ashmem-dalvik-aux-structure",
147       "mappedpathname": "/dev/ashmem/dalvik-aux-structure.*",
148       "allocator": "unhooked"
149     },
150     {
151       "name": "unhooked-ashmem-dalvik-bitmap",
152       "mappedpathname": "/dev/ashmem/dalvik-bitmap.*",
153       "allocator": "unhooked"
154     },
155     {
156       "name": "unhooked-ashmem-dalvik-other",
157       "mappedpathname": "/dev/ashmem/dalvik.*",
158       "allocator": "unhooked"
159     },
160     {
161       "name": "unhooked-pvrsrvkm",
162       "mappedpathname": "/dev/pvrsrvkm.*",
163       "allocator": "unhooked"
164     },
165     {
166       "name": "unhooked-system-dex",
167       "mappedpathname": "/data/dalvik-cache/system.*.dex.*",
168       "allocator": "unhooked"
169     },
170     {
171       "name": "unhooked-chrome-dex",
172       "mappedpathname": "^/.*?(chrome|content).*?apk@classes.dex",
173       "allocator": "unhooked"
174     },
175     {
176       "name": "unhooked-other-ashmem",
177       "mappedpathname": "/dev/ashmem/.*",
178       "allocator": "unhooked"
179     },
180     {
181       "name": "unhooked-anonymous",
182       "mappedpathname": "^$",
183       "allocator": "unhooked"
184     },
185     {
186       "name": "unhooked-file-exec-lib-chrome",
187       "mappedpathname": "^/.*?(chromeview|content).*",
188       "mappedpermission": "..x.",
189       "allocator": "unhooked"
190     },
191     {
192       "name": "unhooked-file-exec",
193       "mappedpathname": "^/.*",
194       "mappedpermission": "..x.",
195       "allocator": "unhooked"
196     },
197     {
198       "name": "unhooked-file-nonexec-lib-chrome",
199       "mappedpathname": "^/.*?(chromeview|content).*",
200       "allocator": "unhooked"
201     },
202     {
203       "name": "unhooked-file-nonexec",
204       "mappedpathname": "^/.*",
205       "allocator": "unhooked"
206     },
207     {
208       "name": "unhooked-stack",
209       "mappedpathname": ".stack.",
210       "allocator": "unhooked"
211     },
212     {
213       "name": "unhooked-other",
214       "mappedpathname": ".*",
215       "allocator": "unhooked"
216     },
217     {
218       "name": "mmap-v8-heap-newspace",
219       "stacktrace": ".*v8::internal::NewSpace::SetUp.*",
220       "allocator": "mmap"
221     },
222     {
223       "name": "mmap-v8-heap-coderange",
224       "stacktrace": ".*v8::internal::CodeRange::SetUp.*",
225       "allocator": "mmap"
226     },
227     {
228       "name": "mmap-v8-heap-pagedspace",
229       "stacktrace": ".*v8::internal::PagedSpace::AllocateRaw.*",
230       "allocator": "mmap"
231     },
232     {
233       "name": "mmap-v8-other",
234       "stacktrace": ".*v8::.*",
235       "allocator": "mmap"
236     },
237     {
238       "name": "mmap-gpu-mappedmemorymanager",
239       "stacktrace": ".*gpu::MappedMemoryManager::Alloc.*",
240       "allocator": "mmap"
241     },
242     {
243       "name": "mmap-gpu-command-ringbuffer",
244       "stacktrace": ".*gpu::CommandBufferHelper::AllocateRingBuffer.*",
245       "allocator": "mmap"
246     },
247     {
248       "name": "mmap-gpu-transfer-ringbuffer",
249       "stacktrace": ".*gpu::TransferBuffer::AllocateRingBuffer.*",
250       "allocator": "mmap"
251     },
252     {
253       "name": "mmap-gpu-gles2-createbuffer",
254       "stacktrace": ".*gpu::gles2::BufferTracker::CreateBuffer.*",
255       "allocator": "mmap"
256     },
257     {
258       "name": "mmap-skia-font",
259       "stacktrace": ".*SkTypeface::openStream.*",
260       "allocator": "mmap"
261     },
262     {
263       "name": "mmap-catch-all",
264       "stacktrace": ".*",
265       "allocator": "mmap"
266     },
267     {
268       "name": "tc-disk_cache-backing",
269       "stacktrace": ".*disk_cache::BackendImpl::InitBackingStore.*",
270       "allocator": "malloc"
271     },
272     {
273       "name": "tc-disk_cache-other",
274       "stacktrace": ".*disk_cache::.*",
275       "allocator": "malloc"
276     },
277     {
278       "name": "tc-sqlite3MemAlloc",
279       "stacktrace": ".*sqlite3MemMalloc.*",
280       "allocator": "malloc"
281     },
282     {
283       "name": "tc-angle",
284       "stacktrace": ".*TPoolAllocator::allocate.*",
285       "allocator": "malloc"
286     },
287     {
288       "name": "tc-crypto",
289       "stacktrace": ".*(CRYPTO_malloc|CRYPTO_realloc).*",
290       "allocator": "malloc"
291     },
292     {
293       "name": "tc-net-iobuffer",
294       "stacktrace": ".*net::IOBuffer::IOBuffer.*",
295       "allocator": "malloc"
296     },
297     {
298       "name": "tc-stl-string",
299       "stacktrace": ".*std::basic_string::.*",
300       "allocator": "malloc"
301     },
302     {
303       "name": "tc-stl-rbtree",
304       "stacktrace": ".*std::priv::_Rb_tree::.*",
305       "allocator": "malloc"
306     },
307     {
308       "name": "tc-stl-vector",
309       "stacktrace": ".*std::priv::_Impl_vector::.*",
310       "allocator": "malloc"
311     },
312     {
313       "name": "tc-stl-hashtable",
314       "stacktrace": ".*std::hashtable::.*",
315       "allocator": "malloc"
316     },
317     {
318       "name": "tc-stl-node",
319       "stacktrace": ".*std::priv::_Impl_vector::.*",
320       "allocator": "malloc"
321     },
322     {
323       "name": "tc-webcore-fontcache",
324       "stacktrace": ".*WebCore::FontCache::getCachedFontData.*",
325       "allocator": "malloc"
326     },
327     {
328       "name": "tc-skia",
329       "stacktrace": ".* Sk[A-Za-z_]+::.*",
330       "allocator": "malloc"
331     },
332     {
333       "name": "tc-renderobject",
334       "stacktrace": ".*WebCore::RenderArena::allocate.*",
335       "allocator": "malloc"
336     },
337     {
338       "name": "tc-renderstyle",
339       "stacktrace": ".*WebCore::RenderStyle::create.*",
340       "allocator": "malloc"
341     },
342     {
343       "name": "tc-renderstyle",
344       "stacktrace": ".*WebCore::RenderStyle::clone.*",
345       "allocator": "malloc"
346     },
347     {
348       "name": "tc-webcore-sharedbuf",
349       "stacktrace": ".*WebCore::SharedBuffer::create.*",
350       "allocator": "malloc"
351     },
352     {
353       "name": "tc-webcore-sharedbuf",
354       "stacktrace": ".*WebCore::SharedBuffer::buffer.*",
355       "allocator": "malloc"
356     },
357     {
358       "name": "tc-webcore-sharedbuf",
359       "stacktrace": ".*WebCore::SharedBuffer::append.*",
360       "allocator": "malloc"
361     },
362     {
363       "name": "tc-webcore-XHRcreate",
364       "stacktrace": ".*WebCore::XMLHttpRequest::create .*",
365       "allocator": "malloc"
366     },
367     {
368       "name": "tc-webcore-XHRreceived",
369       "stacktrace": ".*WebCore::XMLHttpRequest::didReceiveData.*",
370       "allocator": "malloc"
371     },
372     {
373       "name": "tc-webcore-docwriter-add",
374       "stacktrace": ".*WebCore::DocumentWriter::addData.*",
375       "allocator": "malloc"
376     },
377     {
378       "name": "tc-webcore-node-and-doc",
379       "stacktrace": ".*WebCore::HTML[a-zA-Z0-9_]*Element::create .*",
380       "allocator": "malloc"
381     },
382     {
383       "name": "tc-webcore-node-and-doc",
384       "stacktrace": ".*WebCore::Text::create .*",
385       "allocator": "malloc"
386     },
387     {
388       "name": "tc-webcore-node-and-doc",
389       "stacktrace": ".*WebCore::Comment::create .*",
390       "allocator": "malloc"
391     },
392     {
393       "name": "tc-webcore-node-and-doc",
394       "stacktrace": ".*WebCore::HTMLDocument::create .*",
395       "allocator": "malloc"
396     },
397     {
398       "name": "tc-webcore-node-and-doc",
399       "stacktrace": ".*WebCore::CSSStyleRule::create .*",
400       "allocator": "malloc"
401     },
402     {
403       "name": "tc-webcore-node-and-doc",
404       "stacktrace": ".*WebCore::Attribute::create .*",
405       "allocator": "malloc"
406     },
407     {
408       "name": "tc-webcore-node-and-doc",
409       "stacktrace": ".*WebCore::DOMWindow::create .*",
410       "allocator": "malloc"
411     },
412     {
413       "name": "tc-webcore-node-factory",
414       "stacktrace": ".*WebCore::HTML[a-zA-Z0-9_]*Factory::create[a-zA-Z0-9_]*Element.*",
415       "allocator": "malloc"
416     },
417     {
418       "name": "tc-webcore-element-wrapper",
419       "stacktrace": ".*WebCore::createHTML[a-zA-Z0-9_]*ElementWrapper.*",
420       "allocator": "malloc"
421     },
422     {
423       "name": "tc-webcore-stylepropertyset",
424       "stacktrace": ".*WebCore::StylePropertySet::create .*",
425       "allocator": "malloc"
426     },
427     {
428       "name": "tc-webcore-style-createsheet",
429       "stacktrace": ".*WebCore::StyleElement::createSheet.*",
430       "allocator": "malloc"
431     },
432     {
433       "name": "tc-webcore-cachedresource",
434       "stacktrace": ".*WebCore::CachedResource::data .*",
435       "allocator": "malloc"
436     },
437     {
438       "name": "tc-webcore-cachedresource",
439       "stacktrace": ".*WebCore::CachedResource::load .*",
440       "allocator": "malloc"
441     },
442     {
443       "name": "tc-webcore-script-execute",
444       "stacktrace": ".*WebCore::ScriptElement::execute.*",
445       "allocator": "malloc"
446     },
447     {
448       "name": "tc-webcore-events-related",
449       "stacktrace": ".*WebCore::createAttributeEventListener.*",
450       "allocator": "malloc"
451     },
452     {
453       "name": "tc-webcore-events-related",
454       "stacktrace": ".*WebCore::V8LazyEventListener::create.*",
455       "allocator": "malloc"
456     },
457     {
458       "name": "tc-webcore-events-related",
459       "stacktrace": ".*WebCore::V8EventListener::create.*",
460       "allocator": "malloc"
461     },
462     {
463       "name": "tc-webcore-events-related",
464       "stacktrace": ".*WebCore::Event::create .*",
465       "allocator": "malloc"
466     },
467     {
468       "name": "tc-webcore-events-related",
469       "stacktrace": ".*WebCore::EventListener::create .*",
470       "allocator": "malloc"
471     },
472     {
473       "name": "tc-webcore-document-write",
474       "stacktrace": ".*WebCore::Document::write.*",
475       "allocator": "malloc"
476     },
477     {
478       "name": "tc-webcore-node-create-renderer",
479       "stacktrace": ".*WebCore::Node::createRendererIfNeeded.*",
480       "allocator": "malloc"
481     },
482     {
483       "name": "tc-webcore-render-catch-all",
484       "stacktrace": ".*WebCore::RenderLayer.*",
485       "allocator": "malloc"
486     },
487     {
488       "name": "tc-webcore-render-catch-all",
489       "stacktrace": ".*WebCore::RenderBlock.*",
490       "allocator": "malloc"
491     },
492     {
493       "name": "tc-webcore-render-catch-all",
494       "stacktrace": ".*WebCore::RenderWidget.*",
495       "allocator": "malloc"
496     },
497     {
498       "name": "tc-webcore-render-catch-all",
499       "stacktrace": ".*WebCore::RenderView.*",
500       "allocator": "malloc"
501     },
502     {
503       "name": "tc-webcore-render-catch-all",
504       "stacktrace": ".*WebCore::RenderViewImpl.*",
505       "allocator": "malloc"
506     },
507     {
508       "name": "tc-webcore-render-catch-all",
509       "stacktrace": ".*WebCore::RenderStyle.*",
510       "allocator": "malloc"
511     },
512     {
513       "name": "tc-webcore-render-catch-all",
514       "stacktrace": ".*WebCore::RenderText.*",
515       "allocator": "malloc"
516     },
517     {
518       "name": "tc-webcore-render-catch-all",
519       "stacktrace": ".* RendererMain .*",
520       "allocator": "malloc"
521     },
522     {
523       "name": "tc-webcore-setInnerHTML-except-node",
524       "stacktrace": ".*WebCore::HTMLElement::setInnerHTML.*",
525       "allocator": "malloc"
526     },
527     {
528       "name": "tc-wtf-StringImpl-user-catch-all",
529       "stacktrace": ".*WTF::StringImpl::create .*",
530       "allocator": "malloc"
531     },
532     {
533       "name": "tc-wtf-StringImpl-user-catch-all",
534       "stacktrace": ".*WTF::StringImpl::createUninitialized.*",
535       "allocator": "malloc"
536     },
537     {
538       "name": "tc-wtf-HashTable-user-catch-all",
539       "stacktrace": ".*WTF::HashTable::allocateTable.*",
540       "allocator": "malloc"
541     },
542     {
543       "name": "tc-webcore-everything-create",
544       "stacktrace": ".*WebCore::[a-zA-Z0-9_]*::create .*",
545       "allocator": "malloc"
546     },
547     {
548       "name": "tc-webkit-from-v8-catch-all",
549       "stacktrace": ".*(WTF::|WebCore::|WebKit::).*v8::.*",
550       "allocator": "malloc"
551     },
552     {
553       "name": "tc-webkit-catch-all",
554       "stacktrace": ".*(WTF::|WebCore::|WebKit::).*",
555       "allocator": "malloc"
556     },
557     {
558       "name": "tc-v8-catch-all",
559       "stacktrace": ".*v8::.*",
560       "allocator": "malloc"
561     },
562     {
563       "name": "tc-toplevel-string",
564       "stacktrace": "std::basic_string::_Rep::_S_create",
565       "allocator": "malloc"
566     },
567     {
568       "name": "tc-std-treemap",
569       "stacktrace": ".*::allocate std::(_Rb_tree|__1::__tree).*",
570       "allocator": "malloc"
571     },
572     {
573       "name": "tc-std-hashmap",
574       "stacktrace": ".*(std::vector::reserve __gnu_cxx::hashtable|::allocate std::_Hashtable|::allocate std::__1::__hash_table).*",
575       "allocator": "malloc"
576     },
577     {
578       "name": "tc-std-vector",
579       "stacktrace": ".*std::(_Vector_base::_M_allocate|__1::vector::allocate).*",
580       "allocator": "malloc"
581     },
582     {
583       "name": "tc-std-other",
584       "stacktrace": ".*(__gnu_cxx::new_allocator::allocate|std::__1::allocator::allocate).*",
585       "allocator": "malloc"
586     },
587     {
588       "name": "tc-catch-all",
589       "stacktrace": ".*",
590       "allocator": "malloc"
591     },
592     {
593       "name": "UNTIL_HERE_FOR_TOTAL",
594       "stacktrace": "optional",
595       "allocator": "optional"
596     },
597     {
598       "name": "total-exclude-profiler",
599       "stacktrace": "optional",
600       "allocator": "optional"
601     },
602     {
603       "name": "total",
604       "stacktrace": "optional",
605       "allocator": "optional"
606     },
607     {
608       "name": "absent",
609       "stacktrace": "optional",
610       "allocator": "optional"
611     },
612     {
613       "name": "anonymous",
614       "stacktrace": "optional",
615       "allocator": "optional"
616     },
617     {
618       "name": "file-exec",
619       "stacktrace": "optional",
620       "allocator": "optional"
621     },
622     {
623       "name": "file-nonexec",
624       "stacktrace": "optional",
625       "allocator": "optional"
626     },
627     {
628       "name": "stack",
629       "stacktrace": "optional",
630       "allocator": "optional"
631     },
632     {
633       "name": "other",
634       "stacktrace": "optional",
635       "allocator": "optional"
636     }
637   ],
638   "version": "POLICY_DEEP_3"