History log of /system/core/metricsd/Android.mk
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1e7592c9d5ea28823f996851d3d8a0fc915640fb 04-Feb-2016 Jorge Lucangeli Obes <jorgelo@google.com> Unit tests: Compile only on 'eng' builds.

metrics_collector_tests, metricsd_tests.

Bug: 26967770
Change-Id: I6d7e8fb6d3d98ab747d922bfeef05aa344b2179c
/system/core/metricsd/Android.mk
eca14e3722257cfd8f0e4531e279b2b79072abb3 28-Jan-2016 Alex Vakulenko <avakulenko@google.com> metricsd: Removing brillo::Any from weaved's public APIs

Weaved replaces brillo::Any with base::Value in its client library,
so need to update clients.

Also this removes last D-Bus dependencies from metrics_collector.

BUG: 26558300
Change-Id: I82d571d7e2bd17347daeb1b70f48ec05378894f0
/system/core/metricsd/Android.mk
30c174b7f93b9f6ee55302eedc0ab4078e8d1f12 20-Jan-2016 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Add tests to the default debug build.

This will allow the tests to be run by the continuous builder.

Bug: 26571398
Change-Id: I7eae2761603e83e3d1f003cb3b06582abc4ed24f
Test: Build an eng build. The tests are installed.
/system/core/metricsd/Android.mk
b6c77af4993b5e5a83fd1ed80309823e44f70650 09-Dec-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Cleanup on TERM signal.

metricsd should shutdown cleanly when receiving a TERM signal:
* stop the binder watcher.
* wait for the thread to quit.
* Exit cleanly.

Note: This is not directly used as we don't send SIGTERM on shutdown or
when stopping services yet.

Bug: 25670584
Change-Id: I878d1e67474c72d24790f3540470e37a23112a95
/system/core/metricsd/Android.mk
4b50bf3a9a6c9d4e577d41f1384507ff97bcdb19 06-Jan-2016 Todd Poynor <toddpoynor@google.com> metrics_collector: Fix build of tests

IMetricsCollectorService implementation moved from libmetricscollectorservice
to metrics_collector executable, which means it needs to be compiled into test
main as well.

Bug: None
Change-Id: I29b0a3ae6164d2256366d61c3a3639d22b943a69
/system/core/metricsd/Android.mk
b77ae4506f7bc9a9ee913427f52dc4acfd012737 04-Jan-2016 Todd Poynor <toddpoynor@google.com> Remove metrics collector service trampoline

No longer needed to trampoline between RTTI and non-RTTI compiles.

Move the service impl from libmetricscollector service to the
metrics_collector executable, now that RTTI is no longer used (and the impl
is not used by binder clients).

Other fixups, including:
* Move service registration and binder watcher to metrics_collector main.
* Compile libmetricscollectorservice with clang just because.

Bug: 26292405
Change-Id: Iae8115c13b203ff03d49bf7678d5eb3ede30e855
/system/core/metricsd/Android.mk
20960297438bf07ccfa5bd2a507eb31b5932da73 21-Dec-2015 Alex Vakulenko <avakulenko@google.com> Disable RTTI in crash_reporter and metricsd

There is no longer a reliance on RTTI in libbrillo, so disable RTTI
in the rest of Brillo codebase.

Bug: 26292405
Change-Id: I2751a2ac973a74741a82f5cd949fc0adaf2449a6
/system/core/metricsd/Android.mk
694553d09797c66c32dafc50d7297610261c1abb 03-Dec-2015 Todd Poynor <toddpoynor@google.com> metrics_collector: add libmetricscollectorservice binder service

Switch user crash event notification from D-Bus to this Binder service.

Add a trampoline as a go-between for the -frtti and -fno-rtti sources.

Add MetricsCollectorServiceClient for crash_reporter to use, hiding the
binder proxy details.

Remove D-Bus message filtering from metrics_collector.

Bug: 25929888
Change-Id: Idcdd60ac476340fb11602fc9afab6cd87843e529
/system/core/metricsd/Android.mk
9fc597b750e7248fcb89daa5681dbef8b501d02f 09-Dec-2015 Alex Vakulenko <avakulenko@google.com> metricsd: Update to use new component/trait APIs from weaved

Removed command and state definitions and use trait definitions
instead. Also, create "metrics" component for weave.

BUG: 25916429, 25916428, 25917426

Change-Id: Icc02d1c46c371d3afa8e4723852f182992c62bf2
/system/core/metricsd/Android.mk
6b8629a6490d01196368ae1ed5bc6967c6f127eb 18-Nov-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Log over binder.

This CL converts metricsd, libmetrics and metrics_collector to use
Binder to pass metrics samples.

Bug: 25670685

Change-Id: I657faecdf4ed1226ab30ce69e062028463437e7b
/system/core/metricsd/Android.mk
608e428006fa317badd51b941e05bdba42bd08bd 13-Nov-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Split into two daemons.

This CL splits metrics_daemon into two independent daemons: metricsd and
metrics_collector.

* metricsd will be responsible for reading the metrics from disk and
periodically uploading them to the server.
* metrics_collector will be responsible for gathering generic metrics
from the system and managing the weave state for metrics.

This refactoring is necessary to prepare the migration of metricsd to
log over binder.

Bug: 25670908
Test: Unit tests.
Test: manual: both daemons run. Metrics are logged, uploaded and the
weave interaction works.

Change-Id: Ib00e1772bb7eec87cbcdcd912c30b555d79d7074
/system/core/metricsd/Android.mk
0ada2ca1dc2b275318cb134cc9a02b42687ed19f 02-Nov-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Collect average cpu usage information.

Collect a new histogram (Platform.CpuUsage.Percent), collecting the
average cpu usage in percent of the total cpu usage possible (across all
cpus).
This measurement is collected every minute.

Bug: 25231576
Test: unit tests.
Test: Manual testing.

Change-Id: I1c63486c177f0c2d4bd361eb9e351a7ca25b80d9
/system/core/metricsd/Android.mk
26aef373a66791e69dec8a1a589a3b2f7f971692 27-Oct-2015 Alex Vakulenko <avakulenko@google.com> core: Rename libchromeos into libbrillo

BUG: 24872993
Change-Id: Ia47ad51140f7e384822eea9d5de46c9f51ceda11
/system/core/metricsd/Android.mk
eb697abf5eca1639aba7111e9a737987a1e3124c 14-Oct-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Read build time values from etc/os-release.d.

This stops relying on system properties to provide build time
configuration.
Product version and id will be stored in /etc/os-release.d.
Channel will be pulled from update engine.

BUG: 24947119
Change-Id: I0972d03cd83ef622846de3cce3dec1992fcc46cd
/system/core/metricsd/Android.mk
82b02de5aaf7e63d78e691ca6d240ebf2e5de99b 10-Oct-2015 Alex Vakulenko <avakulenko@google.com> Update metrics to use weaved's client library

Do not use weave'd D-Bus proxies directly. Use the new client library.

Change-Id: I524d9c5c4c057bd1f82a280ec96848b8a8f4fe29
/system/core/metricsd/Android.mk
59890e2db9d7665615243af6048e0337934d303d 03-Oct-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Expose the metrics status through weave.

metrics_daemon will export _metrics._AnalyticsReportingState containing
"enabled"/"disabled" depending on the current state and two weave
commands (_metrics._{enable,disable}AnalyticsReporting) to update it.

BUG: 24386281
TEST: manual. Enabled and disabled metrics reporting.
`metrics_client -c` reports the correct answer.

Change-Id: Ic4a5ffc1e9f9cbc0b47ee34d3af83584d95da155
/system/core/metricsd/Android.mk
7a9640559b59cb4088b10f4a15e6ca80158abfe7 29-Sep-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Only collect metrics over a short period.

Instead of reporting the metrics over both a long and a short period,
collect and report only over a short period. This makes the code simpler
and the metrics easier to understand.

Also move the collection out of metrics_daemon and into a separate
collector to make it simpler to understand.

BUG: 24464945

Change-Id: I17e52536aaa75321a5e34f42ed488545c2c3efde
/system/core/metricsd/Android.mk
7c5d693fe94f421e54ca58720e61f1db341dbb16 28-Sep-2015 Scott James Remnant <keybuk@google.com> metricsd: build on non-Linux hosts

Bug: 24073089
Change-Id: I94f12f0e30d150348429a959b7bd1c869f766603
/system/core/metricsd/Android.mk
9341286385980c4497d723e5b8fc81b037bfa26e 28-Sep-2015 Jorge Lucangeli Obes <jorgelo@google.com> Simplify Makefile for metrics_daemon.

We can use the LOCAL_INIT_RC variable for init.rc files.

Also, switch to use <service>.rc for the filename, since this is what
Android does now.

Bug: 24465893
Change-Id: Ibf4715c3b0352422b98afc04abfd68a42a46149c
/system/core/metricsd/Android.mk
843725bb3a8984a021b86435a09c78d3565ab5ba 25-Sep-2015 Bertrand Simonnet <bsimonnet@google.com> Merge "metricsd: Report the data partition usage."
5658dc58aa0f3fc778a0db140ef1cdde6f1839b9 18-Sep-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Report the data partition usage.

metricsd should report the stateful partition's usage, both in MB and as
a percentage of the available space.
This measure will be reported every 15 minutes.

BUG: 24132871

Change-Id: I1cd8d651a980f90a57be9cc2a5baf6ed59794470
/system/core/metricsd/Android.mk
28a78b7210b092a3c51cd35f9ec2addf3bacf0cf 23-Sep-2015 Samuel Tan <samueltan@google.com> metricsd: move timer_mock.h and metrics_library_mock.h into include/metrics/

Move metrics_library_mock.h and timer_mock.h into the include/metrics/
folder since some source files in shill need to include these header files.

Adjust the include paths in metricsd source files accordingly, and add
the -frtti flag to the libmetrics target so that classes including
these mock headers can determine the type information of the underlying
class being mocked at run-time.

BUG: 22956441
Change-Id: I19820c0d3097c9c4c2b93730d1988ccec563db23
TEST: "mma" in metricsd folder succeeds.
/system/core/metricsd/Android.mk
1c4d8f10daf692dd7eea64e4de5f909a3f99de08 15-Sep-2015 Samuel Tan <samueltan@google.com> metricsd: move timer.h into include/metrics/

Move timer.h into the include/metrics/ folder since some
source files in shill need to include this header file.
Adjust the timer.h include paths in the metricsd accordingly.

BUG: None
Change-Id: Id2f5e079d3a095f40d0f4d4e0d438bd22f1274ff
TEST: "mma" in metricsd folder succeeds.
/system/core/metricsd/Android.mk
eeedcc4150d9e48fabfd3f142c8e4f05d09f82b0 14-Sep-2015 Bertrand Simonnet <bsimonnet@google.com> Merge "metricsd: Collect generic stats about the system."
ebbe35c2b589372c3938133dd04e93eba30a4922 08-Sep-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Collect generic stats about the system.

Collect memory usage and disk IO statistics periodically.
Also update the Android.mk file to use clang by default.

BUG: 22953719
TEST: builds on external and internal branches.

Change-Id: I1ee3683d014586cf7f711d2e090a99429752063c
/system/core/metricsd/Android.mk
d83a26033cca1d5cd979aecc25682fd01f8732e3 08-Sep-2015 Dan Albert <danalbert@google.com> Drop unused LOCAL_STATIC_LIBRARIES.

This is ignored for BUILD_STATIC_LIBRARY.

Change-Id: Ib5553e0aeaa30cdb2b29f18a4d5d0b0bf1b8740a
/system/core/metricsd/Android.mk
6d5822ed7bf2acf978ab93a86aba6c99aba6895a 03-Sep-2015 Bill Yi <byi@google.com> Revert "metricsd: Collect generic stats about the system."

This reverts commit 90b02cd46d8b9b4c80f99022a685e3a1ae2504a4.

Change-Id: I9950c688433e99b0bc4745f02e2f9ae66f3b5578
/system/core/metricsd/Android.mk
90b02cd46d8b9b4c80f99022a685e3a1ae2504a4 25-Aug-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Collect generic stats about the system.

Collect memory usage and disk IO statistics periodically.

BUG: 22953719

Change-Id: I2e35d4800ddc684284969e6a58a6f50497086b69
/system/core/metricsd/Android.mk
1253186728abd35d7177008598627e7b872974e5 31-Aug-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Make the unit tests pass.

This cleans up the unit tests and update them to pass.

Cleaned up:
* removed the irrelevant bits.
* Used ScopedTempDir for all test specific files (instead of the current
directory).
* Update some objects to make them more easily testable.
* Group all the test in a single binary and use bionic's test runner.

BUG: 23682444
Change-Id: I289e3a5ff89968fdecd4a156e93bc38bbc25f58b
/system/core/metricsd/Android.mk
2699362a57b2115ed78b2efcb1ab655ed8a8e0c0 20-Aug-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Use system properties to store build time metadata.

Instead of using /etc/lsb-release to store the version, channel and
build_target_id, use the Android system properties.

BUG: 22879642

Change-Id: Ic79e74bd14bf8e2c55549c08963a66700b49b544
/system/core/metricsd/Android.mk
69200d9191be9f95762a10f6d6d3d5df28922d2e 20-Aug-2015 Daniel Erat <derat@google.com> Use __ANDROID__ instead of __BRILLO__.

__ANDROID__ is defined automatically by the toolchain.

Bug: 23358460
Change-Id: Ib122bfc86a7af6ab6b0b1fcc29dc671e44049524
/system/core/metricsd/Android.mk
73eaa46559c8114912d532280ce5de3167d29126 17-Aug-2015 Bertrand SIMONNET <bsimonnet@google.com> metrics: Add init script for metrics_daemon.

This init script creates the metrics data directory (/data/misc/metrics)
and starts the daemon.

BUG: 22953527

Change-Id: I21cd36f38a7a3550bc755cef5699e9a6ac3dfb94
/system/core/metricsd/Android.mk
0a94a3bf1cd2accfa9ff60e6b29150eea0a7c835 11-Aug-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Only define the targets on linux.

libchromeos (dependency of metricsd) is only defined for linux.
All metrics target must only be defined on mac too or the build system
will complain.

BUG: 22879597
Change-Id: I5bee816e001518a8053d1dfc7b39cca81a4314fd
/system/core/metricsd/Android.mk
ed6ca6f8c69745a17499e38e8d6a6554802e100a 29-Jul-2015 Bertrand SIMONNET <bsimonnet@google.com> metricsd: Add Android.mk.

This builds:
* metrics_client: command line interface to log metrics.
* libmetrics: shared library used by services to log metrics.
* metrics_daemon: background daemon responsible for aggregating the
metrics log and upload it periodically.

BUG: 22879597

Change-Id: I79adc4953d5bfd541df955fbc77d3549f5bbd26b
/system/core/metricsd/Android.mk