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

Side by Side Diff: include/v8-profiler.h

Issue 9323064: I'd like to introduce kSynthetic type of nodes for Heap Profiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: GetType was removed. 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 | « no previous file | src/profile-generator.h » ('j') | src/profile-generator.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 public: 248 public:
249 enum Type { 249 enum Type {
250 kHidden = 0, // Hidden node, may be filtered when shown to user. 250 kHidden = 0, // Hidden node, may be filtered when shown to user.
251 kArray = 1, // An array of elements. 251 kArray = 1, // An array of elements.
252 kString = 2, // A string. 252 kString = 2, // A string.
253 kObject = 3, // A JS object (except for arrays and strings). 253 kObject = 3, // A JS object (except for arrays and strings).
254 kCode = 4, // Compiled code. 254 kCode = 4, // Compiled code.
255 kClosure = 5, // Function closure. 255 kClosure = 5, // Function closure.
256 kRegExp = 6, // RegExp. 256 kRegExp = 6, // RegExp.
257 kHeapNumber = 7, // Number stored in the heap. 257 kHeapNumber = 7, // Number stored in the heap.
258 kNative = 8 // Native object (not from V8 heap). 258 kNative = 8, // Native object (not from V8 heap).
259 kArtificial = 9 // Artificial object, usualy used for grouping
mnaganov (inactive) 2012/02/06 15:37:22 Agreed offline to renamed this to kSynthetic. And
260 // snapshot items together for reducing
261 // postprocessing steps.
262 // example - group of detached DOM trees.
259 }; 263 };
260 264
261 /** Returns node type (see HeapGraphNode::Type). */ 265 /** Returns node type (see HeapGraphNode::Type). */
262 Type GetType() const; 266 Type GetType() const;
263 267
264 /** 268 /**
265 * Returns node name. Depending on node's type this can be the name 269 * Returns node name. Depending on node's type this can be the name
266 * of the constructor (for objects), the name of the function (for 270 * of the constructor (for objects), the name of the function (for
267 * closures), string value, or an empty string (for compiled code). 271 * closures), string value, or an empty string (for compiled code).
268 */ 272 */
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 }; 515 };
512 516
513 517
514 } // namespace v8 518 } // namespace v8
515 519
516 520
517 #undef V8EXPORT 521 #undef V8EXPORT
518 522
519 523
520 #endif // V8_V8_PROFILER_H_ 524 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/profile-generator.h » ('j') | src/profile-generator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698