OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stdio.h> | 5 #include <stdio.h> |
6 #include <string.h> | 6 #include <string.h> |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iostream> | 9 #include <iostream> |
10 | 10 |
11 #include "base/base_switches.h" | 11 #include "base/base_switches.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
18 #include "mojo/shell/context.h" | 18 #include "mojo/runner/context.h" |
19 #include "mojo/shell/switches.h" | 19 #include "mojo/runner/switches.h" |
20 | 20 |
21 namespace mojo { | 21 namespace mojo { |
22 namespace shell { | 22 namespace shell { |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Whether we're currently tracing. | 25 // Whether we're currently tracing. |
26 bool g_tracing = false; | 26 bool g_tracing = false; |
27 | 27 |
28 // Number of tracing blocks written. | 28 // Number of tracing blocks written. |
29 uint32_t g_blocks = 0; | 29 uint32_t g_blocks = 0; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 shell_context.Shutdown(); | 127 shell_context.Shutdown(); |
128 } | 128 } |
129 | 129 |
130 if (g_tracing) | 130 if (g_tracing) |
131 StopTracingAndFlushToDisk(); | 131 StopTracingAndFlushToDisk(); |
132 return 0; | 132 return 0; |
133 } | 133 } |
134 | 134 |
135 } // namespace shell | 135 } // namespace shell |
136 } // namespace mojo | 136 } // namespace mojo |
OLD | NEW |