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

Side by Side Diff: base/test/perf_log.h

Issue 2358063002: Preparing components_perftests (Closed)
Patch Set: Attempt to guess how generate_perf_json.py works Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | base/test/perf_log.cc » ('j') | components/test/components_test_suit.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_TEST_PERF_LOG_H_ 5 #ifndef BASE_TEST_PERF_LOG_H_
6 #define BASE_TEST_PERF_LOG_H_ 6 #define BASE_TEST_PERF_LOG_H_
7 7
8 namespace base { 8 namespace base {
9 9
10 class FilePath; 10 class FilePath;
11 11
12 // Initializes and finalizes the perf log. These functions should be 12 // Initializes and finalizes the perf log. These functions should be
13 // called at the beginning and end (respectively) of running all the 13 // called at the beginning and end (respectively) of running all the
14 // performance tests. The init function returns true on success. 14 // performance tests. The init function returns true on success.
15 bool InitPerfLog(const FilePath& log_path); 15 bool InitPerfLog();
16 void FinalizePerfLog(); 16 void FinalizePerfLog();
17 17
18 // Writes to the perf result log the given 'value' resulting from the 18 // Writes to the perf result log the given 'value' resulting from the
19 // named 'test'. The units are to aid in reading the log by people. 19 // named 'test'. The units are to aid in reading the log by people.
20 void LogPerfResult(const char* test_name, double value, const char* units); 20 void LogPerfResult(const char* test_name, double value, const char* units);
21 21
22 } // namespace base 22 } // namespace base
23 23
24 #endif // BASE_TEST_PERF_LOG_H_ 24 #endif // BASE_TEST_PERF_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | base/test/perf_log.cc » ('j') | components/test/components_test_suit.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698