Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1904)

Unified Diff: apps/benchmark/run_args.cc

Issue 1377413002: benchmark.mojo: fix trace event name vs category mismatch. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/benchmark/run_args.cc
diff --git a/apps/benchmark/run_args.cc b/apps/benchmark/run_args.cc
index d8037b91423d7cf25da641e2a27663963d7ebba3..8921a96137596001f453a2fb6bead5c47180975f 100644
--- a/apps/benchmark/run_args.cc
+++ b/apps/benchmark/run_args.cc
@@ -41,18 +41,18 @@ bool GetMeasurement(const std::string& measurement_spec, Measurement* result) {
if (!CheckMeasurementFormat(parts[0], 3, parts.size()))
return false;
*result =
- Measurement(MeasurementType::TIME_UNTIL, EventSpec(parts[1], parts[2]));
+ Measurement(MeasurementType::TIME_UNTIL, EventSpec(parts[2], parts[1]));
} else if (parts[0] == "time_between") {
if (!CheckMeasurementFormat(parts[0], 5, parts.size()))
return false;
*result = Measurement(MeasurementType::TIME_BETWEEN,
- EventSpec(parts[1], parts[2]),
- EventSpec(parts[3], parts[4]));
+ EventSpec(parts[2], parts[1]),
+ EventSpec(parts[4], parts[3]));
} else if (parts[0] == "avg_duration") {
if (!CheckMeasurementFormat(parts[0], 3, parts.size()))
return false;
*result = Measurement(MeasurementType::AVG_DURATION,
- EventSpec(parts[1], parts[2]));
+ EventSpec(parts[2], parts[1]));
} else {
LOG(ERROR) << "Could not recognize the measurement type: " << parts[0];
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698