diff options
author | pamg@google.com <pamg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-19 20:35:32 +0000 |
---|---|---|
committer | pamg@google.com <pamg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-19 20:35:32 +0000 |
commit | 90766c3494b8042ef8ff99b8527a40bdd9d212f2 (patch) | |
tree | a899bacfedc892e2c42c5d3267f69987dd917074 /chrome/test/ui/ui_test.h | |
parent | 67493619b9b39485367ecab80bff6c934a9bcf4e (diff) | |
download | chromium_src-90766c3494b8042ef8ff99b8527a40bdd9d212f2.zip chromium_src-90766c3494b8042ef8ff99b8527a40bdd9d212f2.tar.gz chromium_src-90766c3494b8042ef8ff99b8527a40bdd9d212f2.tar.bz2 |
Add a new PrintResult() method that outputs perf-test results in a particular
arcane format expected by the Python post-processing script. Switch
memory_test to use that method. Fix a small typo in the vcproj group name.
BUG=1326725,1221588
TEST=none yet; will be covered by buildbot
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1051 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/ui_test.h')
-rw-r--r-- | chrome/test/ui/ui_test.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/test/ui/ui_test.h b/chrome/test/ui/ui_test.h index b4cf324..cd9ede9 100644 --- a/chrome/test/ui/ui_test.h +++ b/chrome/test/ui/ui_test.h @@ -154,6 +154,26 @@ class UITest : public testing::Test { // after the browser process has terminated. bool CloseBrowser(BrowserProxy* browser, bool* application_closed) const; + // Prints numerical information to stdout in a controlled format, for + // post-processing. |measurement| is a description of the quantity being + // measured, e.g. "vm_peak"; |modifier| is provided as a convenience and + // will be appended directly to the name of the |measurement|, e.g. + // "_browser"; |trace| is a description of the particular data point, e.g. + // "reference"; |value| is the measured value; and |units| is a description + // of the units of measure, e.g. "bytes". If |important| is true, the output + // line will be specially marked, to notify the post-processor. The strings + // may be empty. They should not contain any colons (:) or equals signs (=). + // A typical post-processing step would be to produce graphs of the data + // produced for various builds, using the combined |measurement| + |modifier| + // string to specify a particular graph and the |trace| to identify a trace + // (i.e., data series) on that graph. + void PrintResult(const std::wstring& measurement, + const std::wstring& modifier, + const std::wstring& trace, + size_t value, + const std::wstring& units, + bool important); + // Gets the directory for the currently active profile in the browser. std::wstring GetDownloadDirectory(); |