Merge "Fix bug in stats_event_benchmark"

am: 3bf8858105

Change-Id: I2194294ddc098edcba44172d82fca061f21b5f3b
This commit is contained in:
Ruchir Rastogi 2020-01-06 16:48:28 -08:00 committed by android-build-merger
commit ae9375f13e

View file

@ -22,7 +22,8 @@ static struct stats_event* constructStatsEvent() {
stats_event_set_atom_id(event, 100);
// randomly sample atom size
for (int i = 0; i < rand() % 800; i++) {
int numElements = rand() % 800;
for (int i = 0; i < numElements; i++) {
stats_event_write_int32(event, i);
}