Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: services/service_manager/standalone/tracer.h

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef SERVICES_SERVICE_MANAGER_STANDALONE_TRACER_H_ 5 #ifndef SERVICES_SERVICE_MANAGER_STANDALONE_TRACER_H_
6 #define SERVICES_SERVICE_MANAGER_STANDALONE_TRACER_H_ 6 #define SERVICES_SERVICE_MANAGER_STANDALONE_TRACER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted_memory.h" 16 #include "base/memory/ref_counted_memory.h"
17 #include "mojo/common/data_pipe_drainer.h" 17 #include "mojo/common/data_pipe_drainer.h"
18 #include "services/tracing/public/cpp/provider.h" 18 #include "services/tracing/public/cpp/provider.h"
19 #include "services/tracing/public/interfaces/tracing.mojom.h" 19 #include "services/tracing/public/interfaces/tracing.mojom.h"
20 20
21 namespace shell { 21 namespace service_manager {
22 22
23 // Tracer collects tracing data from base/trace_event and from externally 23 // Tracer collects tracing data from base/trace_event and from externally
24 // configured sources, aggregates it into a single stream, and writes it out to 24 // configured sources, aggregates it into a single stream, and writes it out to
25 // a file. It should be constructed very early in a process' lifetime before any 25 // a file. It should be constructed very early in a process' lifetime before any
26 // initialization that may be interesting to trace has occured and be shut down 26 // initialization that may be interesting to trace has occured and be shut down
27 // as late as possible to capture as much initialization/shutdown code as 27 // as late as possible to capture as much initialization/shutdown code as
28 // possible. 28 // possible.
29 class Tracer : public mojo::common::DataPipeDrainer::Client { 29 class Tracer : public mojo::common::DataPipeDrainer::Client {
30 public: 30 public:
31 Tracer(); 31 Tracer();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 bool first_chunk_written_; 88 bool first_chunk_written_;
89 std::string trace_service_data_; 89 std::string trace_service_data_;
90 90
91 // Trace file, if open. 91 // Trace file, if open.
92 FILE* trace_file_; 92 FILE* trace_file_;
93 std::string trace_filename_; 93 std::string trace_filename_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(Tracer); 95 DISALLOW_COPY_AND_ASSIGN(Tracer);
96 }; 96 };
97 97
98 } // namespace shell 98 } // namespace service_manager
99 99
100 #endif // SERVICES_SERVICE_MANAGER_STANDALONE_TRACER_H_ 100 #endif // SERVICES_SERVICE_MANAGER_STANDALONE_TRACER_H_
OLDNEW
« no previous file with comments | « services/service_manager/standalone/desktop/main_helper.cc ('k') | services/service_manager/standalone/tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698