| 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 #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. | |
| 13 | |
| 14 #include "base/debug/trace_event_win.h" | 12 #include "base/debug/trace_event_win.h" |
| 15 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 16 #include "base/file_util.h" | 14 #include "base/file_util.h" |
| 17 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 19 #include "base/process_util.h" | 17 #include "base/process_util.h" |
| 20 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 21 #include "base/stringprintf.h" | 19 #include "base/stringprintf.h" |
| 22 #include "base/threading/platform_thread.h" | 20 #include "base/threading/platform_thread.h" |
| 23 #include "base/time.h" | 21 #include "base/time.h" |
| 24 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
| 25 #include "base/win/event_trace_consumer.h" | 23 #include "base/win/event_trace_consumer.h" |
| 26 #include "base/win/event_trace_controller.h" | 24 #include "base/win/event_trace_controller.h" |
| 27 #include "base/win/registry.h" | 25 #include "base/win/registry.h" |
| 28 #include "base/win/scoped_bstr.h" | 26 #include "base/win/scoped_bstr.h" |
| 29 #include "base/win/scoped_comptr.h" | 27 #include "base/win/scoped_comptr.h" |
| 30 #include "base/win/scoped_variant.h" | 28 #include "base/win/scoped_variant.h" |
| 31 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
| 32 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
| 33 #include "chrome/common/chrome_paths_internal.h" | 31 #include "chrome/common/chrome_paths_internal.h" |
| 34 #include "chrome/test/base/chrome_process_util.h" | 32 #include "chrome/test/base/chrome_process_util.h" |
| 35 #include "chrome/test/ui/ui_perf_test.h" | 33 #include "chrome/test/ui/ui_perf_test.h" |
| 34 #include "chrome_frame/chrome_tab.h" |
| 36 #include "chrome_frame/test_utils.h" | 35 #include "chrome_frame/test_utils.h" |
| 37 #include "chrome_frame/utils.h" | 36 #include "chrome_frame/utils.h" |
| 38 | 37 |
| 39 const wchar_t kSilverlightControlKey[] = | 38 const wchar_t kSilverlightControlKey[] = |
| 40 L"CLSID\\{DFEAF541-F3E1-4c24-ACAC-99C30715084A}\\InprocServer32"; | 39 L"CLSID\\{DFEAF541-F3E1-4c24-ACAC-99C30715084A}\\InprocServer32"; |
| 41 | 40 |
| 42 const wchar_t kFlashControlKey[] = | 41 const wchar_t kFlashControlKey[] = |
| 43 L"CLSID\\{D27CDB6E-AE6D-11cf-96B8-444553540000}\\InprocServer32"; | 42 L"CLSID\\{D27CDB6E-AE6D-11cf-96B8-444553540000}\\InprocServer32"; |
| 44 | 43 |
| 45 using base::TimeDelta; | 44 using base::TimeDelta; |
| (...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1472 PrintPerfTestResults(automation_provider_connect_monitor, kNumCycles, | 1471 PrintPerfTestResults(automation_provider_connect_monitor, kNumCycles, |
| 1473 "automationproviderconnect"); | 1472 "automationproviderconnect"); |
| 1474 PrintPerfTestResults(external_tab_navigate_monitor, kNumCycles, | 1473 PrintPerfTestResults(external_tab_navigate_monitor, kNumCycles, |
| 1475 "externaltabnavigate"); | 1474 "externaltabnavigate"); |
| 1476 PrintPerfTestResults(renderer_main_monitor, kNumCycles, | 1475 PrintPerfTestResults(renderer_main_monitor, kNumCycles, |
| 1477 "beginrenderermain"); | 1476 "beginrenderermain"); |
| 1478 #ifdef NDEBUG | 1477 #ifdef NDEBUG |
| 1479 PrintPerfTestResults(pre_read_chrome_monitor, kNumCycles, "PreReadImage"); | 1478 PrintPerfTestResults(pre_read_chrome_monitor, kNumCycles, "PreReadImage"); |
| 1480 #endif // NDEBUG | 1479 #endif // NDEBUG |
| 1481 } | 1480 } |
| OLD | NEW |