1462 Commits

Author SHA1 Message Date
Tej Singh
97b2e1a6ea Testdrive: allow multiple atoms in pulled atoms
Modifies statsd_testdrive to allow up to 100 atoms to be pulled at a
time. Uses trigger event with app breadcrumb so that the puller happens
once.

Bug: 128893770
Test: statsd_testdrive 10021 (temperature)
Change-Id: I185a7eb1b32a6b19596601dcf5a1ba7a633e4e35
2019-05-15 21:19:10 +00:00
Yuncheol Heo
d1a85d2d7e Add CarPowerChanged, GarageModeInfo atom.
Bug: 131688824
Bug: 131086247
Test: It builds.
Change-Id: Ie67ea04107c6aa2929a1e6b859ddabda8494437e
2019-05-11 06:05:41 +00:00
TreeHugger Robot
5f8a9547e8 Merge "GpuStats: track CPU Vulkan implementation usage" into qt-dev 2019-05-10 19:02:49 +00:00
Andrew T Nguyen
ee615d6ed5 Add VehicleMapServicePacketReported and
VehicleMapServicePacketFailureReported to atoms.proto.

Test: none
Change-Id: I0c9933e11e4b9539546150e810e8332f51aa6382
Bug: 131921165
2019-05-10 18:54:47 +00:00
Yiwei Zhang
7c70930267 GpuStats: track CPU Vulkan implementation usage
Bug: 131927737
Test: atest GpuStatsPuller_test
Change-Id: I003f6a169886bf1acf131a7dd4811ebd48e4120e
2019-05-09 23:46:53 +00:00
TreeHugger Robot
0d4716fcd2 Merge "GpuStats: Track ANGLE usage info" into qt-dev 2019-05-09 19:58:15 +00:00
Yiwei Zhang
a0f5fefb8f GpuStats: Track ANGLE usage info
Bug: 132285967
Test: atest GpuStatsPuller_test
Change-Id: I1763624fe705b6d3a3ccc3bdbddfa573362ddc27
2019-05-08 17:05:54 -07:00
TreeHugger Robot
7d35c0d901 Merge "GpuStats: add render api versions to global stats" into qt-dev 2019-05-08 01:02:54 +00:00
Frank Li
94a58df81e Merge "Extend NetworkDnsEventReported and add new DnsCallReported to log per-query information" into qt-dev 2019-05-07 14:50:11 +00:00
Yiwei Zhang
63852d2a06 GpuStats: add render api versions to global stats
Bug: 131866357
Test: atest GpuStatsPuller_test
Change-Id: I7875c3dd7935297519d68cd1d16277928ab2e53b
2019-05-06 19:31:20 -07:00
TreeHugger Robot
9bfa54e7a0 Merge "Statsd: support atom counts of new atoms." into qt-dev 2019-05-03 21:10:04 +00:00
lifr
a2e19c0f91 Extend NetworkDnsEventReported and add new DnsCallReported to log per-query information
NetworkDnsEventReported -The message represents the entire lookup operation,
which may result one or more queries to the recursive DNS resolvers.

DnsCallReported - Those DNS queries are individually logged in DnsCallReported
to enable computing error rates and network latency and timeouts broken up by
query type, transport, network interface, etc

Test: make statsd_testdrive
     ./out/host/linux-x86/bin/statsd_testdrive 116 => pass
Bug: 129253665

Change-Id: Ib75affea5d849437a293affbe294732153511d97
Merged-In: Ib75affea5d849437a293affbe294732153511d97
2019-05-03 02:58:09 +00:00
Tej Singh
35c7a57b63 Statsd: support atom counts of new atoms.
In Q, mainline modules will can add atoms after the platform ships.
Statsdstats now supports atom counts of up to 100 atoms that are added
after Q ships. Note: pixel/oem pushed atoms will also get counted now.

Also fixes a typo in prepareFirstBucket

Bug: 131448746
Bug: 128363379
Test: statsd_test
Change-Id: I149c91136fb7649f0c9a0d6e83bc20f8461e45e2
2019-05-01 17:11:50 -07:00
Joe Onorato
a902e88286 Merge "Update owners files" into qt-dev 2019-05-01 21:38:58 +00:00
TreeHugger Robot
b5e2988558 Merge "define media.metrics events for statsd" into qt-dev 2019-05-01 20:36:27 +00:00
Joe Onorato
12a704dfb4 Update owners files
Test: none
Bug: 12345
Change-Id: I3e42ce95abca629259608209e5865c76cc01b231
2019-05-01 18:04:24 +00:00
TreeHugger Robot
8684762c6b Merge "Add install download failure enum" into qt-dev 2019-05-01 08:49:20 +00:00
TreeHugger Robot
e989ff5c78 Merge "Adb command for binary push logging" into qt-dev 2019-05-01 07:58:18 +00:00
Tej Singh
403fe47db6 Add install download failure enum
Add install download failure to binary push and train info enums.

Test: builds
Bug: 131698812
Change-Id: I4e089e4a6af45fffa70114eac290b63950e354db
2019-04-30 18:10:26 -07:00
Tej Singh
53f9dee2da Adb command for binary push logging
Adds an adb command to log binary push funnel events.

Test: adb shell cmd stats log-binary-push
Bug: 131699167
Fixes: 131699167
Change-Id: I8c48a1b1fa61ed7d0e908882c2b0ca8cb78ede71
2019-04-30 17:45:54 -07:00
Muhammad Qureshi
15f8da95f1 Add ActivationType to EventActivation
This allows setting one metric with both IMMEDIATE and ACTIVATE_ON_BOOT
EventActivations

Also, if an on-boot Activation that is already active gets another
activation signal, ignore it.

Bug: 128880263
Fixes: 128880263
Test: statsd_test
Change-Id: I8d483882836c9abc184230b4a70d4734d49d93c3
2019-04-30 07:35:44 -07:00
Muhammad Qureshi
844694bc5d Save EventActivations to disk
Also:
- rename time_to_live to ttl
- rename activation_ns to start_ns

Bug: 129719662
Fixes: 129719662
Test: statsd_test

Change-Id: I4069f85d0c1f5bd0885a9588d8a9157d94b2c587
2019-04-30 07:35:24 -07:00
TreeHugger Robot
72c16709ba Merge "AML: update experiment id logic" into qt-dev 2019-04-30 02:03:52 +00:00
Tej Singh
9b4a5ec926 AML: update experiment id logic
Update the experiment id logic for binary push and train info to reflect
the new design.

Bug: 131267440
Test: gts tests added in topic
Test: gts-tradefed run gts-dev --module GtsStatsdHostTestCases
Change-Id: I09ff331c9d4b91c2e13a51b832c33d11b34ec0d7
2019-04-29 15:39:02 -07:00
Ray Essick
8ab04df45a define media.metrics events for statsd
define atoms/messages that express the media.metrics events as they get
passed to statsd. This mirrors the data that was already being
collected via 'dumpsys media.metrics'.

Update the test app's list of acceptable uid's from which it takes
submissions to include the media.metrics service.

Bug: 118782504
Test: statsd/test_drive
Change-Id: I825f6cb7a9baa61f51c45b1b56a20dd94ae48015
2019-04-27 13:01:27 -07:00
Hai Zhang
42dd2ded55 Merge "Add RoleRequestResultReported atom." into qt-dev 2019-04-27 08:26:05 +00:00
TreeHugger Robot
f4d95b9959 Merge "Fix ValueMetric unit test." into qt-dev 2019-04-27 06:41:24 +00:00
Hai Zhang
5d3328d754 Add RoleRequestResultReported atom.
Bug: 130456955
Test: ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissoncontroller 188
Change-Id: I427ff9b9ea0066b714191b3f6e3a1ac10ba32016
2019-04-27 14:29:11 +08:00
Tej Singh
597c7164a6 Skip data pulling when metric is not active
Statsd is pulling data when the metric is not active. This cl causes
statsd to skip data pulls when the metric is not active

Test: unit tests
Test: cts
Bug: 129910938
Change-Id: Ibc9459f38c2f6128b8a1f10c6dea683bfe07b22a
2019-04-25 13:07:51 -07:00
Yao Chen
8d306274d0 Fix ValueMetric unit test.
condition_true_nanos is only written to proto when there is a condition.

Bug: 130831927
Test: statsd_test
Change-Id: I059ca478879567757658bce51d6a751f844a33f6
2019-04-24 09:52:07 -07:00
TreeHugger Robot
7abea9fa92 Merge "Fix thermal throttling atoms" into qt-dev 2019-04-19 20:22:40 +00:00
Christopher Ferris
4740d54243 Move to android_mallopt for malloc debug calls.
Remove the guardrail/MemoryLeakTrackUtil.* files. They aren't used
and they are a copy of frameworks/av/media/utils/MemoryLeakTrackUtil.*.

Bug: 130028357

Test: Enable backtrace for calendar, run am dumpheap -n <PID> <FILE>
Change-Id: I6ce69465b0c04fae97b3622df2763a2996063d85
Merged-In: I6ce69465b0c04fae97b3622df2763a2996063d85
(cherry picked from commit 98180a344cfd08748dcf5a6aa5aebfdeb7e78b62)
2019-04-19 11:15:50 -07:00
Rafal Slawik
44af3b3202 Monitor swap
Pull value of VmSwap from /proc/PID/status when capturing
ProcessMemoryState atom.

Before change:
(average pull time nanos) 43355896
(max pull time nanos) 75649278

After change:
(average pull time nanos) 86307073
(max pull time nanos) 151681474

Delta: 2x increase
Pulling frequency is controled via statsd and we trade-off more
expensive reads for more actionable data (helping detect memory leaks).

Bug: 130624561
Test: atest MemoryStatUtilTest
Test: benchmark pulling ProcessMemoryState atom
Test: manually take a statsd report
Change-Id: I1d90563b70b5253b3d31ddab4810db870620c4d4
(cherry picked from commit 65a9b7122ada9db7a95cdfe31fa97b328bd04a06)
2019-04-19 06:13:27 +00:00
Tej Singh
a72344993d Fix thermal throttling atoms
Adds a ThermalThrottlingSeverityStateChanged atom to replace
ThermalThrottlingStateChanged. The new atom logs per severity level and
temperature type/name.

Test: print-logs and testdrive while injecting a high temperature via
emul_temp
Bug: 119688911

Change-Id: I2fbcae36eec96bd2c484e0d85ca1617f802a79d9
2019-04-18 13:20:08 -07:00
TreeHugger Robot
54212ce71a Merge "Organize intelligence counters together" into qt-dev 2019-04-18 09:25:51 +00:00
Alex Salo
dd028ba2e1 Update atoms with the final API constants
Bug: 122960476
Test: manually
Change-Id: Ie80e4e797554d3f4c351e352ce4bc5da9994a9f6
2019-04-17 13:33:49 -07:00
TreeHugger Robot
580a12333e Merge "Make an atom visible to Permission Controller." into qt-dev 2019-04-17 14:21:39 +00:00
Joel Galenson
6f41b1061e Make an atom visible to Permission Controller.
Fixes: 123896378
Test: Use it from Permission Controller.
Change-Id: If2cbe078fc0c8d7000ae79ede3d46d02f2d009d1
2019-04-16 12:22:41 -07:00
Ben Blount
763a5d5d52 Organize intelligence counters together
Intelligence is a mainline module with several counter usecases.
Rather than create a very similar atom for each we'll use an event enum
for these simple counters.

Test: compile proto
Bug: 129491708

Change-Id: Ic30c0d6e15f6afbef90d89d1b53a20f8af38902e
2019-04-16 18:59:15 +00:00
Maggie White
442b6314e5 thermal: Add pulled cooling device atom and a field to Temperature atom
Bug: 119688911
Test: adb shell cmd stats pull-source 10058
Test: adb shell cmd stats pull-source 10021
Test: Injected artificially high temp via emul_temp
Change-Id: I1afe53380a38f342d7f59e0c61c487e05be31d85
Signed-off-by: Maggie White <maggiewhite@google.com>
2019-04-15 11:35:04 -07:00
Kevin Chyn
27a8e5b3d4 Merge "Adding Face Setting Stats." into qt-dev 2019-04-13 06:24:04 +00:00
TreeHugger Robot
e9c5022c03 Merge "Add logging for bubble flyout action." into qt-dev 2019-04-13 04:49:44 +00:00
Steven Wu
1684f2d5ba Add logging for bubble flyout action.
Bug: 123543171
Test: manual
Change-Id: I7b0a21c0a0c23c211e4c72ec5b2dfc7ea60537d6
2019-04-12 21:23:32 -04:00
joshmccloskey
34c1f8e929 Adding Face Setting Stats.
Test: Verified that fields are set.
Bug: 128349976
Change-Id: I49b30401ebf3063adf7d137ff40505d6504226ab
2019-04-12 12:45:18 -07:00
Philip P. Moltmann
b2f0c77a27 Mark permission controller atoms
Test: Built
Bug: 130246849
Change-Id: I31eff6f5c5d0543f11628e7f5afd315d7e81a148
2019-04-11 22:13:59 -07:00
TreeHugger Robot
3ba6ace87c Merge "Add additional logging for ongoing and foreground bubble types." into qt-dev 2019-04-12 03:38:09 +00:00
Chiachang Wang
fa124d7bf4 Merge "Migrate NetworkStack metrics off StatsLog.write" into qt-dev 2019-04-12 01:04:30 +00:00
Kevin Chyn
a0d2d2021d Merge changes from topic "face-logging" into qt-dev
* changes:
  Populate debug value for biometric atoms
  Adding debug value to Biometric atoms.
2019-04-12 00:14:36 +00:00
Yao Chen
f9585ca911 Merge "Add a config option to save the metrics data locally." into qt-dev 2019-04-11 23:33:14 +00:00
Yao Chen
9a43b4f027 Add a config option to save the metrics data locally.
Usually after config owner calls statsd to get data, statsd will remove that data
forever. This cl adds an option to save historical data locally so that when a bugreport
is taken, it contains historical statsd metrics for debugging.

+ All existing guardrail on storage still apply, and local history data has lower
  priority when the guardrail is hit. On top of that, statsd will remove history
  files that are more than 2 days old.

+ Also fixed issues inside StorageManager (e.g.,
   using string::compare to sort by timestamp is problematic, redundant file size read, etc)

Test: statsd_test and manually
Fix: 126562025

Change-Id: I5238b9fd3069cbef5bcccabd2212bc4d6c734702
2019-04-11 14:15:43 -07:00