Supervised user import: Listen for profile creation/deletion
[chromium-blink-merge.git] / tools / memory_inspector / classification_rules / default / mmap-android.py
blob336edfde53a9de6f93500272de71a50a9d8d51e4
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # This is a generic rule-tree for classifying memory maps on Android. It is a
6 # simple hierarchical python data structure (list of dictionaries). Some rules:
7 # - Order matters: what is caught by a node is not caught by its siblings.
8 # - Hierarchy matters: what is caught by a node is propagated to its children
9 # (if any). Only one of its children, though, will get the data.
10 # - Non leaf nodes have an extra implicit node called {node-name}-other: if
11 # something is caught by a non leaf node, but none of its children, it is
12 # appended to implicit {node-name}-other catch-all children.
14 # See memory_inspector/classification/mmap_classifier.py for more docs.
18 'name': 'Anon',
19 'mmap_file': r'(^$)|(^\[)',
20 'children': [
22 'name': 'stack',
23 'mmap_file': r'\[stack',
26 'name': 'libc malloc',
27 'mmap_file': 'libc_malloc',
30 'name': 'JIT',
31 'mmap_prot': 'r.x',
36 'name': 'Ashmem',
37 'mmap_file': r'^/dev/ashmem',
38 'children': [
40 'name': 'Dalvik',
41 'mmap_file': r'^/dev/ashmem/dalvik',
42 'children': [
44 'name': 'Java Heap',
45 'mmap_file': r'dalvik-heap',
48 'name': 'JIT',
49 'mmap_prot': 'r.x',
56 'name': 'Libs',
57 'mmap_file': r'(\.so)|(\.apk)|(\.jar)',
58 'children': [
60 'name': 'Native',
61 'mmap_file': r'\.so',
64 'name': 'APKs',
65 'mmap_file': r'\.apk',
68 'name': 'JARs',
69 'mmap_file': r'\.jar',
74 'name': 'Devices',
75 'mmap_file': r'^/dev/',
76 'children': [
78 'name': 'GPU',
79 'mmap_file': r'(nv)|(mali)|(kgsl)',