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 // Standalone benchmarking application based on FFmpeg. This tool is used to | 5 // Standalone benchmarking application based on FFmpeg. This tool is used to |
6 // measure decoding performance between different FFmpeg compile and run-time | 6 // measure decoding performance between different FFmpeg compile and run-time |
7 // options. We also use this tool to measure performance regressions when | 7 // options. We also use this tool to measure performance regressions when |
8 // testing newer builds of FFmpeg from trunk. | 8 // testing newer builds of FFmpeg from trunk. |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 int main(int argc, const char** argv) { | 88 int main(int argc, const char** argv) { |
89 base::AtExitManager exit_manager; | 89 base::AtExitManager exit_manager; |
90 | 90 |
91 CommandLine::Init(argc, argv); | 91 CommandLine::Init(argc, argv); |
92 | 92 |
93 logging::InitLogging( | 93 logging::InitLogging( |
94 NULL, | 94 NULL, |
95 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, | 95 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, |
96 logging::LOCK_LOG_FILE, // Ignored. | 96 logging::LOCK_LOG_FILE, // Ignored. |
97 logging::DELETE_OLD_LOG_FILE, // Ignored. | 97 logging::DELETE_OLD_LOG_FILE, // Ignored. |
98 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | 98 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS, |
| 99 logging::DISABLE_DLOG_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
99 | 100 |
100 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); | 101 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |
101 const CommandLine::StringVector& filenames = cmd_line->GetArgs(); | 102 const CommandLine::StringVector& filenames = cmd_line->GetArgs(); |
102 if (filenames.empty()) { | 103 if (filenames.empty()) { |
103 std::cerr << "Usage: " << argv[0] << " [OPTIONS] FILE [DUMPFILE]\n" | 104 std::cerr << "Usage: " << argv[0] << " [OPTIONS] FILE [DUMPFILE]\n" |
104 << " --stream=[audio|video] " | 105 << " --stream=[audio|video] " |
105 << "Benchmark either the audio or video stream\n" | 106 << "Benchmark either the audio or video stream\n" |
106 << " --video-threads=N " | 107 << " --video-threads=N " |
107 << "Decode video using N threads\n" | 108 << "Decode video using N threads\n" |
108 << " --verbose=N " | 109 << " --verbose=N " |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 #if defined(ENABLE_WINDOWS_EXCEPTIONS) | 595 #if defined(ENABLE_WINDOWS_EXCEPTIONS) |
595 } __except(EXCEPTION_EXECUTE_HANDLER) { | 596 } __except(EXCEPTION_EXECUTE_HANDLER) { |
596 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() | 597 *log_out << " Exception:" << std::setw(11) << GetExceptionCode() |
597 << " " << in_path.value() << std::endl; | 598 << " " << in_path.value() << std::endl; |
598 return 1; | 599 return 1; |
599 } | 600 } |
600 #endif | 601 #endif |
601 CommandLine::Reset(); | 602 CommandLine::Reset(); |
602 return 0; | 603 return 0; |
603 } | 604 } |
OLD | NEW |