OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 printf("Mode: %s\n", GetUrlModeString(i).c_str()); | 364 printf("Mode: %s\n", GetUrlModeString(i).c_str()); |
365 printf("URL: %s\n", url.c_str()); | 365 printf("URL: %s\n", url.c_str()); |
366 | 366 |
367 // Do the actual test with input events. | 367 // Do the actual test with input events. |
368 RunTestInternal(url, true, delay_us); | 368 RunTestInternal(url, true, delay_us); |
369 latencies_[test_flags_] = CalculateLatency(); | 369 latencies_[test_flags_] = CalculateLatency(); |
370 | 370 |
371 if (mode_ == kWebGLThread) { | 371 if (mode_ == kWebGLThread) { |
372 // Print vsync info when in threaded mode. | 372 // Print vsync info when in threaded mode. |
373 Query query_vsync = | 373 Query query_vsync = |
374 Query::EventNameIs("CCThreadProxy::onVSyncParametersChanged") && | 374 Query::EventNameIs("OutputSurface::OnVSyncParametersChanged") && |
375 Query::EventHasNumberArg("monotonicTimebase") && | 375 Query::EventHasNumberArg("timebase") && |
376 Query::EventHasNumberArg("intervalInSeconds"); | 376 Query::EventHasNumberArg("interval"); |
377 | 377 |
378 const TraceEvent* vsync_info = analyzer_->FindFirstOf(query_vsync); | 378 const TraceEvent* vsync_info = analyzer_->FindFirstOf(query_vsync); |
379 if (vsync_info) { | 379 if (vsync_info) { |
380 double timebase = vsync_info->GetKnownArgAsDouble("monotonicTimebase"); | 380 double timebase = vsync_info->GetKnownArgAsDouble("timebase"); |
381 double interval = vsync_info->GetKnownArgAsDouble("intervalInSeconds"); | 381 double interval = vsync_info->GetKnownArgAsDouble("interval"); |
382 printf("VSync scheduling: timebase = %f; interval = %f\n", | 382 printf("VSync scheduling: timebase = %f; interval = %f\n", |
383 timebase, interval); | 383 timebase, interval); |
384 } | 384 } |
385 } | 385 } |
386 } | 386 } |
387 | 387 |
388 // Print summary if more than 1 behavior was tested in this run. This is only | 388 // Print summary if more than 1 behavior was tested in this run. This is only |
389 // for manual test runs for human reabable results, not for perf bots. | 389 // for manual test runs for human reabable results, not for perf bots. |
390 if (behaviors.size() > 1) { | 390 if (behaviors.size() > 1) { |
391 printf("#############################################################\n"); | 391 printf("#############################################################\n"); |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 kInputHeavy | kInputDirty | kRafHeavy, \ | 748 kInputHeavy | kInputDirty | kRafHeavy, \ |
749 kInputHeavy | kInputDirty | kRafHeavy | kPaintHeavy, \ | 749 kInputHeavy | kInputDirty | kRafHeavy | kPaintHeavy, \ |
750 kInputDirty | kPaintHeavy, \ | 750 kInputDirty | kPaintHeavy, \ |
751 kInputDirty | kRafHeavy | kPaintHeavy) | 751 kInputDirty | kRafHeavy | kPaintHeavy) |
752 | 752 |
753 INSTANTIATE_TEST_CASE_P(, LatencyTestWebGL, LATENCY_SUITE_MODES()); | 753 INSTANTIATE_TEST_CASE_P(, LatencyTestWebGL, LATENCY_SUITE_MODES()); |
754 INSTANTIATE_TEST_CASE_P(, LatencyTestWebGLThread, LATENCY_SUITE_MODES()); | 754 INSTANTIATE_TEST_CASE_P(, LatencyTestWebGLThread, LATENCY_SUITE_MODES()); |
755 INSTANTIATE_TEST_CASE_P(, LatencyTestSW, LATENCY_SUITE_MODES()); | 755 INSTANTIATE_TEST_CASE_P(, LatencyTestSW, LATENCY_SUITE_MODES()); |
756 | 756 |
757 } // namespace | 757 } // namespace |
OLD | NEW |