Commit Graph

3 Commits

Author SHA1 Message Date
art-benchmark-service
ec0f5b9e8d Update boot image and system server profiles [M5C5P89S0PP]
= Perf stats =
    (lower is better)

    Startup time is improving at the cost of slight increase in memory usage.
    This is due the a large number of extra preloaded classes which will
    be trimmed down in further updates.

    Cold startup (speed-profile): -2.05%
    PSS: -1.41%
    RSS: -0.63%
    Privat Dirty: -2.03%
    Boot time: -0.71%
    Code size: 0.47%

=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.899
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.02
}

=Profile stats=

Data info:
- total aggregations: 5637
- number of (device types, builds): 179

File boot-image-profile.txt
  - hot methods: 1354 added, 873 removed
  - methods: 1354 added, 873 removed
  - classes: 165 added, 2 removed
  - totals now: 21496 hot methods, 21496 methods, 13518 classes
  - totals before: 21015 hot methods, 21015 methods, 13355 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1304, 833, 156, 2, 19958, 9581
    com.android, 49, 39, 9, 0, 1442, 3351
    android.view, 157, 128, 3, 2, 2999, 877
    android.hardware, 5, 4, 0, 0, 360, 793
    android.bluetooth, 3, 3, 0, 0, 170, 170
    android.animation, 24, 24, 0, 0, 362, 71
    android.app, 139, 127, 0, 0, 2729, 976
    android.content, 121, 106, 1, 0, 2060, 590
    android.graphics, 96, 79, 1, 0, 1795, 320
    android.icu, 39, 35, 0, 0, 1911, 1528
    android.media, 20, 21, 1, 0, 741, 567
    android.net, 381, 14, 141, 0, 684, 423
    android.widget, 94, 94, 2, 0, 1315, 368

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 108 added, 0 removed
  - totals now: 0 hot methods, 0 methods, 11493 classes
  - totals before: 0 hot methods, 0 methods, 11385 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 108, 0, 0, 8430
    android.view, 0, 0, 1, 0, 0, 743
    android.app, 0, 0, 1, 0, 0, 865
    android.net, 0, 0, 106, 0, 0, 341

File boot-image-profile.txt
  - hot methods: 1685 added, 1227 removed
  - methods: 1685 added, 1227 removed
  - classes: 167 added, 2 removed
  - totals now: 30491 hot methods, 30491 methods, 16058 classes
  - totals before: 30033 hot methods, 30033 methods, 15893 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1303, 843, 158, 2, 20002, 9612
    com.android, 112, 102, 9, 0, 2292, 3691
    java, 216, 229, 0, 0, 6512, 1807
    android.view, 157, 128, 3, 2, 2999, 877
    android.hardware, 5, 4, 0, 0, 360, 793
    android.bluetooth, 3, 14, 0, 0, 159, 170
    android.animation, 24, 24, 0, 0, 362, 71
    android.app, 140, 126, 0, 0, 2729, 976
    android.content, 121, 106, 1, 0, 2060, 590
    android.graphics, 96, 79, 1, 0, 1795, 320
    android.icu, 39, 35, 0, 0, 1911, 1528
    android.media, 20, 21, 1, 0, 741, 567
    android.net, 381, 14, 141, 0, 684, 423
    android.widget, 93, 94, 2, 0, 1314, 368

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 110 added, 0 removed
  - totals now: 0 hot methods, 0 methods, 13924 classes
  - totals before: 0 hot methods, 0 methods, 13814 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 110, 0, 0, 8455
    android.view, 0, 0, 1, 0, 0, 743
    android.media, 0, 0, 1, 0, 0, 499
    android.net, 0, 0, 106, 0, 0, 341

File art-profile
  - hot methods: 2406 added, 1622 removed
  - methods: 2927 added, 1862 removed
  - classes: 77 added, 4 removed
  - totals now: 33520 hot methods, 49219 methods, 5418 classes
  - totals before: 32736 hot methods, 48154 methods, 5345 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 23, 4, 8, 0, 444, 280
    com.android, 2383, 1618, 69, 4, 32921, 5095
    android.hardware, 2, 2, 0, 0, 242, 127
    android.content, 2, 1, 1, 0, 3, 7
    android.net, 16, 1, 7, 0, 177, 130

InternalReferenceRawProfileId: 3925
InternalReferenceCandidateProfileId: 3934

Bug: 169104277
Test: build & benchmark

Change-Id: Ifd03de98020a738cfa7687fe83d7d3e5c89f5c10
2021-05-26 17:09:59 +00:00
art-benchmark-service
84deab3dfe Update boot image and system server profiles [M5C5P89S0PP]
= Perf stats =
(lower is better)

Reduction in the overall memory consumptions as well as faster
cold startups. The trade-off is a slight increase of code size.

Cold startup (speed-profile): -1.25%
PSS: -1.67%
RSS: -1.79%
Privat Dirty: -5.96%
Boot time: -0.82%
Code size: +4.85%

=Generation Strategy=

method_threshold: 0.05
image_class_threshold: 0.05
preloaded_classes_threshold: 0.899
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.02
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.02
}

=Profile stats=

Data info:
- total aggregations: 5307
- number of (device types, builds): 168

File boot-image-profile.txt
  - hot methods: 21015 added, 0 removed
  - methods: 21015 added, 0 removed
  - classes: 13355 added, 0 removed
  - totals now: 21015 hot methods, 21015 methods, 13355 classes
  - totals before: 0 hot methods, 0 methods, 0 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 19487, 0, 9427, 0, 19487, 9427
    com.android, 1432, 0, 3342, 0, 1432, 3342
    java, 2, 0, 114, 0, 2, 114
    android.view, 2970, 0, 876, 0, 2970, 876
    android.hardware, 359, 0, 793, 0, 359, 793
    android.bluetooth, 170, 0, 170, 0, 170, 170
    android.animation, 362, 0, 71, 0, 362, 71
    android.app, 2717, 0, 976, 0, 2717, 976
    android.content, 2045, 0, 589, 0, 2045, 589
    android.graphics, 1778, 0, 319, 0, 1778, 319
    android.icu, 1907, 0, 1528, 0, 1907, 1528
    android.media, 742, 0, 566, 0, 742, 566
    android.net, 317, 0, 282, 0, 317, 282
    android.widget, 1315, 0, 366, 0, 1315, 366

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 11385 added, 0 removed
  - totals now: 0 hot methods, 0 methods, 11385 classes
  - totals before: 0 hot methods, 0 methods, 0 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 8322, 0, 0, 8322
    com.android, 0, 0, 2484, 0, 0, 2484
    java, 0, 0, 114, 0, 0, 114
    android.view, 0, 0, 742, 0, 0, 742
    android.hardware, 0, 0, 679, 0, 0, 679
    android.bluetooth, 0, 0, 164, 0, 0, 164
    android.animation, 0, 0, 71, 0, 0, 71
    android.app, 0, 0, 864, 0, 0, 864
    android.content, 0, 0, 515, 0, 0, 515
    android.graphics, 0, 0, 295, 0, 0, 295
    android.icu, 0, 0, 1468, 0, 0, 1468
    android.media, 0, 0, 499, 0, 0, 499
    android.net, 0, 0, 235, 0, 0, 235
    android.widget, 0, 0, 329, 0, 0, 329

File boot-image-profile.txt
  - hot methods: 2663 added, 2687 removed
  - methods: 2659 added, 2687 removed
  - classes: 201 added, 248 removed
  - totals now: 30033 hot methods, 30033 methods, 15893 classes
  - totals before: 30057 hot methods, 30061 methods, 15940 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 1988, 1537, 113, 228, 19542, 9456
    com.android, 295, 255, 86, 20, 2282, 3682
    java, 304, 673, 0, 0, 6525, 1807
    android.view, 210, 127, 21, 0, 2970, 876
    android.hardware, 35, 10, 5, 2, 359, 793
    android.bluetooth, 18, 16, 0, 0, 170, 170
    android.animation, 28, 13, 0, 0, 362, 71
    android.app, 285, 190, 16, 19, 2715, 976
    android.content, 298, 104, 5, 0, 2045, 589
    android.graphics, 143, 65, 0, 0, 1778, 319
    android.icu, 103, 43, 0, 0, 1907, 1528
    android.media, 71, 18, 4, 2, 742, 566
    android.net, 42, 387, 5, 138, 317, 282
    android.widget, 143, 88, 3, 0, 1315, 366

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 33 added, 175 removed
  - totals now: 0 hot methods, 0 methods, 13814 classes
  - totals before: 0 hot methods, 0 methods, 13956 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 6, 170, 0, 8345
    com.android, 0, 0, 27, 5, 0, 2823
    android.app, 0, 0, 2, 1, 0, 864
    android.graphics, 0, 0, 2, 0, 0, 295
    android.net, 0, 0, 0, 107, 0, 235

File art-profile
  - hot methods: 4351 added, 2717 removed
  - methods: 5688 added, 3427 removed
  - classes: 174 added, 40 removed
  - totals now: 32736 hot methods, 48154 methods, 5345 classes
  - totals before: 31102 hot methods, 45893 methods, 5211 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 11, 37, 0, 18, 425, 272
    com.android, 4337, 2679, 173, 22, 32156, 5030
    android.hardware, 2, 2, 0, 0, 242, 127
    android.net, 9, 32, 0, 15, 162, 123

InternalReferenceRawProfileId: 3892
InternalReferenceCandidateProfileId: 3900

Test: build & benchmark
Bug: 169104277

Change-Id: I64897afc1d6899d729d9086f64ac3a9574429526
(cherry picked from commit c6c95e8d93)
2021-05-14 17:07:47 +00:00
yawanng
c34748cf2c Fix the path of boot image profile and preloaded classes for frameworks.
They should locate under "boot" instead of "build/boot"

Bug: 186455808
Test: m
Change-Id: Ibde3edcb17135aec35aa7956d233768818d14178
2021-05-08 03:59:54 +00:00