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

Side by Side Diff: vm/symbols.h

Issue 10809095: Dump number of symbols in the isolate symbol table before shutting down an isolate under the --trac… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « vm/isolate.cc ('k') | vm/symbols.cc » ('j') | vm/symbols.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_SYMBOLS_H_ 5 #ifndef VM_SYMBOLS_H_
6 #define VM_SYMBOLS_H_ 6 #define VM_SYMBOLS_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 12 matching lines...) Expand all
23 23
24 // Access methods for symbols stored in the vm isolate. 24 // Access methods for symbols stored in the vm isolate.
25 static RawString* Dot() { return dot_; } 25 static RawString* Dot() { return dot_; }
26 26
27 // Initialize frequently used symbols in the vm isolate. 27 // Initialize frequently used symbols in the vm isolate.
28 static void InitOnce(Isolate* isolate); 28 static void InitOnce(Isolate* isolate);
29 29
30 // Initialize and setup a symbol table for the isolate. 30 // Initialize and setup a symbol table for the isolate.
31 static void SetupSymbolTable(Isolate* isolate); 31 static void SetupSymbolTable(Isolate* isolate);
32 32
33 // Get number of symbols in the isolate symbol table.
cshapiro 2012/07/25 02:57:20 The use of a definite article threw me off a littl
siva 2012/07/25 23:41:15 Done.
34 static intptr_t UsedCount(Isolate* isolate);
35
33 // Helper functions to create a symbol given a string or set of characters. 36 // Helper functions to create a symbol given a string or set of characters.
34 static RawString* New(const char* str); 37 static RawString* New(const char* str);
35 template<typename T> 38 template<typename T>
36 static RawString* New(const T* characters, intptr_t len); 39 static RawString* New(const T* characters, intptr_t len);
37 static RawString* New(const String& str); 40 static RawString* New(const String& str);
38 static RawString* New(const String& str, 41 static RawString* New(const String& str,
39 intptr_t begin_index, 42 intptr_t begin_index,
40 intptr_t length); 43 intptr_t length);
41 44
42 45
(...skipping 28 matching lines...) Expand all
71 static RawString* dot_; // "." string. 74 static RawString* dot_; // "." string.
72 75
73 friend class SnapshotReader; 76 friend class SnapshotReader;
74 77
75 DISALLOW_COPY_AND_ASSIGN(Symbols); 78 DISALLOW_COPY_AND_ASSIGN(Symbols);
76 }; 79 };
77 80
78 } // namespace dart 81 } // namespace dart
79 82
80 #endif // VM_SYMBOLS_H_ 83 #endif // VM_SYMBOLS_H_
OLDNEW
« no previous file with comments | « vm/isolate.cc ('k') | vm/symbols.cc » ('j') | vm/symbols.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698