| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/renderer/benchmarking_extension.h" | 5 #include "chrome/renderer/benchmarking_extension.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/stats_table.h" | 8 #include "base/metrics/stats_table.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/common/benchmarking_messages.h" | 10 #include "chrome/common/benchmarking_messages.h" |
| 11 #include "content/common/content_switches.h" | 11 #include "content/public/common/content_switches.h" |
| 12 #include "content/public/renderer/render_thread.h" | 12 #include "content/public/renderer/render_thread.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
| 14 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
| 15 | 15 |
| 16 using WebKit::WebCache; | 16 using WebKit::WebCache; |
| 17 | 17 |
| 18 const char kBenchmarkingExtensionName[] = "v8/Benchmarking"; | 18 const char kBenchmarkingExtensionName[] = "v8/Benchmarking"; |
| 19 | 19 |
| 20 namespace extensions_v8 { | 20 namespace extensions_v8 { |
| 21 | 21 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 return v8::Number::New( | 167 return v8::Number::New( |
| 168 static_cast<double>(base::TimeTicks::HighResNow().ToInternalValue())); | 168 static_cast<double>(base::TimeTicks::HighResNow().ToInternalValue())); |
| 169 } | 169 } |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 v8::Extension* BenchmarkingExtension::Get() { | 172 v8::Extension* BenchmarkingExtension::Get() { |
| 173 return new BenchmarkingWrapper(); | 173 return new BenchmarkingWrapper(); |
| 174 } | 174 } |
| 175 | 175 |
| 176 } // namespace extensions_v8 | 176 } // namespace extensions_v8 |
| OLD | NEW |