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

Side by Side Diff: base/trace_event.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/trace_event.h" 5 #include "base/trace_event.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/platform_thread.h" 9 #include "base/platform_thread.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 13
14 #define USE_UNRELIABLE_NOW 14 #define USE_UNRELIABLE_NOW
15 15
16 using base::TimeDelta;
17 using base::TimeTicks;
18
16 namespace base { 19 namespace base {
17 20
18 static const char* kEventTypeNames[] = { 21 static const char* kEventTypeNames[] = {
19 "BEGIN", 22 "BEGIN",
20 "END", 23 "END",
21 "INSTANT" 24 "INSTANT"
22 }; 25 };
23 26
24 static const wchar_t* kLogFileName = L"trace_%d.log"; 27 static const wchar_t* kLogFileName = L"trace_%d.log";
25 28
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 147 }
145 148
146 void TraceLog::Log(const std::string& msg) { 149 void TraceLog::Log(const std::string& msg) {
147 AutoLock lock(file_lock_); 150 AutoLock lock(file_lock_);
148 151
149 fprintf(log_file_, "%s", msg.c_str()); 152 fprintf(log_file_, "%s", msg.c_str());
150 } 153 }
151 154
152 } // namespace base 155 } // namespace base
153 156
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698