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

Side by Side Diff: src/isolate.h

Issue 9307116: Add timestamp to --trace-gc output. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/isolate.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 thread_local_top_.top_lookup_result_ = top; 1023 thread_local_top_.top_lookup_result_ = top;
1024 } 1024 }
1025 1025
1026 bool context_exit_happened() { 1026 bool context_exit_happened() {
1027 return context_exit_happened_; 1027 return context_exit_happened_;
1028 } 1028 }
1029 void set_context_exit_happened(bool context_exit_happened) { 1029 void set_context_exit_happened(bool context_exit_happened) {
1030 context_exit_happened_ = context_exit_happened; 1030 context_exit_happened_ = context_exit_happened;
1031 } 1031 }
1032 1032
1033 double time_millis_since_init() {
1034 return OS::TimeCurrentMillis() - time_millis_at_init_;
1035 }
1036
1033 private: 1037 private:
1034 Isolate(); 1038 Isolate();
1035 1039
1036 // The per-process lock should be acquired before the ThreadDataTable is 1040 // The per-process lock should be acquired before the ThreadDataTable is
1037 // modified. 1041 // modified.
1038 class ThreadDataTable { 1042 class ThreadDataTable {
1039 public: 1043 public:
1040 ThreadDataTable(); 1044 ThreadDataTable();
1041 ~ThreadDataTable(); 1045 ~ThreadDataTable();
1042 1046
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 unibrow::Mapping<unibrow::Ecma262Canonicalize> 1197 unibrow::Mapping<unibrow::Ecma262Canonicalize>
1194 regexp_macro_assembler_canonicalize_; 1198 regexp_macro_assembler_canonicalize_;
1195 RegExpStack* regexp_stack_; 1199 RegExpStack* regexp_stack_;
1196 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_; 1200 unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
1197 void* embedder_data_; 1201 void* embedder_data_;
1198 1202
1199 // The garbage collector should be a little more aggressive when it knows 1203 // The garbage collector should be a little more aggressive when it knows
1200 // that a context was recently exited. 1204 // that a context was recently exited.
1201 bool context_exit_happened_; 1205 bool context_exit_happened_;
1202 1206
1207 // Time stamp at initialization.
1208 double time_millis_at_init_;
1209
1203 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \ 1210 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \
1204 defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__) 1211 defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__)
1205 bool simulator_initialized_; 1212 bool simulator_initialized_;
1206 HashMap* simulator_i_cache_; 1213 HashMap* simulator_i_cache_;
1207 Redirection* simulator_redirection_; 1214 Redirection* simulator_redirection_;
1208 #endif 1215 #endif
1209 1216
1210 #ifdef DEBUG 1217 #ifdef DEBUG
1211 // A static array of histogram info for each type. 1218 // A static array of histogram info for each type.
1212 HistogramInfo heap_histograms_[LAST_TYPE + 1]; 1219 HistogramInfo heap_histograms_[LAST_TYPE + 1];
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 1398
1392 // Mark the global context with out of memory. 1399 // Mark the global context with out of memory.
1393 inline void Context::mark_out_of_memory() { 1400 inline void Context::mark_out_of_memory() {
1394 global_context()->set_out_of_memory(HEAP->true_value()); 1401 global_context()->set_out_of_memory(HEAP->true_value());
1395 } 1402 }
1396 1403
1397 1404
1398 } } // namespace v8::internal 1405 } } // namespace v8::internal
1399 1406
1400 #endif // V8_ISOLATE_H_ 1407 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698