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

Side by Side Diff: base/trace_event/trace_log.h

Issue 1835303002: Implementation of the GreenWeb language extensions. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change GreenWeb-related CSS property names such that they apply in the desired order at runtime. Created 4 years, 8 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
« no previous file with comments | « .gitignore ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 BASE_TRACE_EVENT_TRACE_LOG_H_ 5 #ifndef BASE_TRACE_EVENT_TRACE_LOG_H_
6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ 6 #define BASE_TRACE_EVENT_TRACE_LOG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 void SetProcessID(int process_id); 272 void SetProcessID(int process_id);
273 273
274 // Process sort indices, if set, override the order of a process will appear 274 // Process sort indices, if set, override the order of a process will appear
275 // relative to other processes in the trace viewer. Processes are sorted first 275 // relative to other processes in the trace viewer. Processes are sorted first
276 // on their sort index, ascending, then by their name, and then tid. 276 // on their sort index, ascending, then by their name, and then tid.
277 void SetProcessSortIndex(int sort_index); 277 void SetProcessSortIndex(int sort_index);
278 278
279 // Sets the name of the process. 279 // Sets the name of the process.
280 void SetProcessName(const std::string& process_name); 280 void SetProcessName(const std::string& process_name);
281 281
282 // Gets the name of the process.
283 std::string GetProcessName();
284
282 // Processes can have labels in addition to their names. Use labels, for 285 // Processes can have labels in addition to their names. Use labels, for
283 // instance, to list out the web page titles that a process is handling. 286 // instance, to list out the web page titles that a process is handling.
284 void UpdateProcessLabel(int label_id, const std::string& current_label); 287 void UpdateProcessLabel(int label_id, const std::string& current_label);
285 void RemoveProcessLabel(int label_id); 288 void RemoveProcessLabel(int label_id);
286 289
287 // Thread sort indices, if set, override the order of a thread will appear 290 // Thread sort indices, if set, override the order of a thread will appear
288 // within its process in the trace viewer. Threads are sorted first on their 291 // within its process in the trace viewer. Threads are sorted first on their
289 // sort index, ascending, then by their name, and then tid. 292 // sort index, ascending, then by their name, and then tid.
290 void SetThreadSortIndex(PlatformThreadId thread_id, int sort_index); 293 void SetThreadSortIndex(PlatformThreadId thread_id, int sort_index);
291 294
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 subtle::AtomicWord generation_; 482 subtle::AtomicWord generation_;
480 bool use_worker_thread_; 483 bool use_worker_thread_;
481 484
482 DISALLOW_COPY_AND_ASSIGN(TraceLog); 485 DISALLOW_COPY_AND_ASSIGN(TraceLog);
483 }; 486 };
484 487
485 } // namespace trace_event 488 } // namespace trace_event
486 } // namespace base 489 } // namespace base
487 490
488 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ 491 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_
OLDNEW
« no previous file with comments | « .gitignore ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698