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

Unified Diff: runtime/vm/thread_registry.h

Issue 1296353002: Add --timing (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/thread.cc ('k') | runtime/vm/thread_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_registry.h
diff --git a/runtime/vm/thread_registry.h b/runtime/vm/thread_registry.h
index cb106269c2a526fef36febf0a3810e9c6ab90aa0..01f52a356ef3eea212075a2023e040b2330f5825 100644
--- a/runtime/vm/thread_registry.h
+++ b/runtime/vm/thread_registry.h
@@ -142,6 +142,8 @@ class ThreadRegistry {
void PruneThread(Thread* thread);
+ void CloseAllTimelineBlocks();
+
struct Entry {
// NOTE: |thread| is deleted automatically when the thread exits.
// In other words, it is not safe to dereference |thread| unless you are on
@@ -182,6 +184,11 @@ class ThreadRegistry {
return NULL;
}
+ // Close the timeline block cache inside entry.
+ // NOTE: Lock should be taken before this function is called.
+ // NOTE: Recorder lock should be taken before this function is called.
+ void CloseTimelineBlockLocked(Entry* entry);
+
// Note: Lock should be taken before this function is called.
void CheckSafepointLocked();
« no previous file with comments | « runtime/vm/thread.cc ('k') | runtime/vm/thread_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698