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

Side by Side Diff: src/heap.h

Issue 3054003: Output time spent in code flushing in GC NVP trace. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « no previous file | src/heap.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 1715
1716 class GCTracer BASE_EMBEDDED { 1716 class GCTracer BASE_EMBEDDED {
1717 public: 1717 public:
1718 class Scope BASE_EMBEDDED { 1718 class Scope BASE_EMBEDDED {
1719 public: 1719 public:
1720 enum ScopeId { 1720 enum ScopeId {
1721 EXTERNAL, 1721 EXTERNAL,
1722 MC_MARK, 1722 MC_MARK,
1723 MC_SWEEP, 1723 MC_SWEEP,
1724 MC_COMPACT, 1724 MC_COMPACT,
1725 MC_FLUSH_CODE,
1725 kNumberOfScopes 1726 kNumberOfScopes
1726 }; 1727 };
1727 1728
1728 Scope(GCTracer* tracer, ScopeId scope) 1729 Scope(GCTracer* tracer, ScopeId scope)
1729 : tracer_(tracer), 1730 : tracer_(tracer),
1730 scope_(scope) { 1731 scope_(scope) {
1731 start_time_ = OS::TimeCurrentMillis(); 1732 start_time_ = OS::TimeCurrentMillis();
1732 } 1733 }
1733 1734
1734 ~Scope() { 1735 ~Scope() {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 1975
1975 // To speed up scavenge collections new space string are kept 1976 // To speed up scavenge collections new space string are kept
1976 // separate from old space strings. 1977 // separate from old space strings.
1977 static List<Object*> new_space_strings_; 1978 static List<Object*> new_space_strings_;
1978 static List<Object*> old_space_strings_; 1979 static List<Object*> old_space_strings_;
1979 }; 1980 };
1980 1981
1981 } } // namespace v8::internal 1982 } } // namespace v8::internal
1982 1983
1983 #endif // V8_HEAP_H_ 1984 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698