~alinuxninja/nginx-edge/trunk

« back to all changes in this revision

Viewing changes to debian/modules/ngx_pagespeed/psol/include/third_party/chromium/src/base/test/perf_log.h

  • Committer: Vivian
  • Date: 2015-12-04 18:20:11 UTC
  • Revision ID: git-v1:a36f2bc32e884f7473b3a47040e5411306144d7d
* Do not extract psol.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
3
 
// found in the LICENSE file.
4
 
 
5
 
#ifndef BASE_TEST_PERF_LOG_H_
6
 
#define BASE_TEST_PERF_LOG_H_
7
 
 
8
 
namespace base {
9
 
 
10
 
class FilePath;
11
 
 
12
 
// Initializes and finalizes the perf log. These functions should be
13
 
// called at the beginning and end (respectively) of running all the
14
 
// performance tests. The init function returns true on success.
15
 
bool InitPerfLog(const FilePath& log_path);
16
 
void FinalizePerfLog();
17
 
 
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.
20
 
void LogPerfResult(const char* test_name, double value, const char* units);
21
 
 
22
 
}  // namespace base
23
 
 
24
 
#endif  // BASE_TEST_PERF_LOG_H_