OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file provides a thin binary wrapper around the BattOr Agent | 5 // This file provides a thin binary wrapper around the BattOr Agent |
6 // library. This binary wrapper provides a means for non-C++ tracing | 6 // library. This binary wrapper provides a means for non-C++ tracing |
7 // controllers, such as Telemetry and Android Systrace, to issue high-level | 7 // controllers, such as Telemetry and Android Systrace, to issue high-level |
8 // tracing commands to the BattOr through an interactive shell. | 8 // tracing commands to the BattOr through an interactive shell. |
9 // | 9 // |
10 // Example usage of how an external trace controller might use this binary: | 10 // Example usage of how an external trace controller might use this binary: |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include <iostream> | 37 #include <iostream> |
38 | 38 |
39 #include "base/at_exit.h" | 39 #include "base/at_exit.h" |
40 #include "base/bind.h" | 40 #include "base/bind.h" |
41 #include "base/bind_helpers.h" | 41 #include "base/bind_helpers.h" |
42 #include "base/command_line.h" | 42 #include "base/command_line.h" |
43 #include "base/location.h" | 43 #include "base/location.h" |
44 #include "base/logging.h" | 44 #include "base/logging.h" |
45 #include "base/message_loop/message_loop.h" | 45 #include "base/message_loop/message_loop.h" |
46 #include "base/run_loop.h" | 46 #include "base/run_loop.h" |
| 47 #include "base/single_thread_task_runner.h" |
47 #include "base/strings/string_tokenizer.h" | 48 #include "base/strings/string_tokenizer.h" |
48 #include "base/strings/utf_string_conversions.h" | 49 #include "base/strings/utf_string_conversions.h" |
49 #include "base/threading/thread.h" | 50 #include "base/threading/thread.h" |
50 #include "base/threading/thread_task_runner_handle.h" | 51 #include "base/threading/thread_task_runner_handle.h" |
51 #include "tools/battor_agent/battor_agent.h" | 52 #include "tools/battor_agent/battor_agent.h" |
52 #include "tools/battor_agent/battor_error.h" | 53 #include "tools/battor_agent/battor_error.h" |
53 #include "tools/battor_agent/battor_finder.h" | 54 #include "tools/battor_agent/battor_finder.h" |
54 | 55 |
55 using std::endl; | 56 using std::endl; |
56 | 57 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 }; | 340 }; |
340 | 341 |
341 } // namespace battor | 342 } // namespace battor |
342 | 343 |
343 int main(int argc, char* argv[]) { | 344 int main(int argc, char* argv[]) { |
344 base::AtExitManager exit_manager; | 345 base::AtExitManager exit_manager; |
345 base::CommandLine::Init(argc, argv); | 346 base::CommandLine::Init(argc, argv); |
346 battor::BattOrAgentBin bin; | 347 battor::BattOrAgentBin bin; |
347 return bin.Run(argc, argv); | 348 return bin.Run(argc, argv); |
348 } | 349 } |
OLD | NEW |