| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome_frame/test/perf/chrome_frame_perftest.h" | 4 #include "chrome_frame/test/perf/chrome_frame_perftest.h" |
| 5 | 5 |
| 6 #include <atlwin.h> | 6 #include <atlwin.h> |
| 7 #include <atlhost.h> | 7 #include <atlhost.h> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "chrome_tab.h" // Generated from chrome_tab.idl. | 12 #include "chrome_tab.h" // Generated from chrome_tab.idl. |
| 13 | 13 |
| 14 #include "base/event_trace_controller_win.h" | 14 #include "base/event_trace_controller_win.h" |
| 15 #include "base/event_trace_consumer_win.h" | 15 #include "base/event_trace_consumer_win.h" |
| 16 #include "base/file_path.h" | 16 #include "base/file_path.h" |
| 17 #include "base/file_util.h" | 17 #include "base/file_util.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/process_util.h" | 19 #include "base/process_util.h" |
| 20 #include "base/registry.h" | 20 #include "base/registry.h" |
| 21 #include "base/scoped_ptr.h" | 21 #include "base/scoped_ptr.h" |
| 22 #include "base/scoped_bstr_win.h" | 22 #include "base/scoped_bstr_win.h" |
| 23 #include "base/scoped_comptr_win.h" | 23 #include "base/scoped_comptr_win.h" |
| 24 #include "base/scoped_variant_win.h" | 24 #include "base/scoped_variant_win.h" |
| 25 #include "base/string_util.h" | 25 #include "base/string_util.h" |
| 26 #include "base/time.h" | 26 #include "base/time.h" |
| 27 #include "base/trace_event_win.h" | 27 #include "base/trace_event_win.h" |
| 28 #include "base/utf_string_conversions.h" |
| 28 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
| 29 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
| 30 #include "chrome/common/chrome_paths_internal.h" | 31 #include "chrome/common/chrome_paths_internal.h" |
| 31 #include "chrome/test/chrome_process_util.h" | 32 #include "chrome/test/chrome_process_util.h" |
| 32 #include "chrome/test/ui/ui_test.h" | 33 #include "chrome/test/ui/ui_test.h" |
| 33 | 34 |
| 34 #include "chrome_frame/test_utils.h" | 35 #include "chrome_frame/test_utils.h" |
| 35 #include "chrome_frame/utils.h" | 36 #include "chrome_frame/utils.h" |
| 36 | 37 |
| 37 const wchar_t kSilverlightControlKey[] = | 38 const wchar_t kSilverlightControlKey[] = |
| (...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 // Print results | 1341 // Print results |
| 1341 std::string times; | 1342 std::string times; |
| 1342 for (int i = 0; i < kNumCycles; ++i) { | 1343 for (int i = 0; i < kNumCycles; ++i) { |
| 1343 ASSERT_TRUE(monitor[i].is_valid()); | 1344 ASSERT_TRUE(monitor[i].is_valid()); |
| 1344 StringAppendF(×, "%.2f,", monitor[i].duration().InMillisecondsF()); | 1345 StringAppendF(×, "%.2f,", monitor[i].duration().InMillisecondsF()); |
| 1345 } | 1346 } |
| 1346 | 1347 |
| 1347 bool important = false; | 1348 bool important = false; |
| 1348 PrintResultList("createproxy", "", "t", times, "ms", important); | 1349 PrintResultList("createproxy", "", "t", times, "ms", important); |
| 1349 } | 1350 } |
| OLD | NEW |