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

Side by Side Diff: base/debug/activity_tracker.h

Issue 2692273008: Hacky slashy (Closed)
Patch Set: . Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Activity tracking provides a low-overhead method of collecting information 5 // Activity tracking provides a low-overhead method of collecting information
6 // about the state of the application for analysis both while it is running 6 // about the state of the application for analysis both while it is running
7 // and after it has terminated unexpectedly. Its primary purpose is to help 7 // and after it has terminated unexpectedly. Its primary purpose is to help
8 // locate reasons the browser becomes unresponsive by providing insight into 8 // locate reasons the browser becomes unresponsive by providing insight into
9 // what all the various threads and processes are (or were) doing. 9 // what all the various threads and processes are (or were) doing.
10 10
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 719
720 ~GlobalActivityTracker(); 720 ~GlobalActivityTracker();
721 721
722 // Creates a global tracker using a given persistent-memory |allocator| and 722 // Creates a global tracker using a given persistent-memory |allocator| and
723 // providing the given |stack_depth| to each thread tracker it manages. The 723 // providing the given |stack_depth| to each thread tracker it manages. The
724 // created object is activated so tracking will begin immediately upon return. 724 // created object is activated so tracking will begin immediately upon return.
725 static void CreateWithAllocator( 725 static void CreateWithAllocator(
726 std::unique_ptr<PersistentMemoryAllocator> allocator, 726 std::unique_ptr<PersistentMemoryAllocator> allocator,
727 int stack_depth); 727 int stack_depth);
728 728
729 #if !defined(OS_NACL) 729 #if !defined(OS_NACL) && !defined(OS_FUCHSIA)
730 // Like above but internally creates an allocator around a disk file with 730 // Like above but internally creates an allocator around a disk file with
731 // the specified |size| at the given |file_path|. Any existing file will be 731 // the specified |size| at the given |file_path|. Any existing file will be
732 // overwritten. The |id| and |name| are arbitrary and stored in the allocator 732 // overwritten. The |id| and |name| are arbitrary and stored in the allocator
733 // for reference by whatever process reads it. 733 // for reference by whatever process reads it.
734 static void CreateWithFile(const FilePath& file_path, 734 static void CreateWithFile(const FilePath& file_path,
735 size_t size, 735 size_t size,
736 uint64_t id, 736 uint64_t id,
737 StringPiece name, 737 StringPiece name,
738 int stack_depth); 738 int stack_depth);
739 #endif // !defined(OS_NACL) 739 #endif // !defined(OS_NACL)
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 ScopedProcessWaitActivity(const void* program_counter, 1068 ScopedProcessWaitActivity(const void* program_counter,
1069 const base::Process* process); 1069 const base::Process* process);
1070 DISALLOW_COPY_AND_ASSIGN(ScopedProcessWaitActivity); 1070 DISALLOW_COPY_AND_ASSIGN(ScopedProcessWaitActivity);
1071 }; 1071 };
1072 #endif 1072 #endif
1073 1073
1074 } // namespace debug 1074 } // namespace debug
1075 } // namespace base 1075 } // namespace base
1076 1076
1077 #endif // BASE_DEBUG_ACTIVITY_TRACKER_H_ 1077 #endif // BASE_DEBUG_ACTIVITY_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698