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

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

Issue 5687003: New heap profiler: add support for progress reporting and control. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years 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 | « include/v8.h ('k') | src/api.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 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 const HeapGraphNode* GetToNode() const; 238 const HeapGraphNode* GetToNode() const;
239 }; 239 };
240 240
241 241
242 /** 242 /**
243 * HeapGraphNode represents a node in a heap graph. 243 * HeapGraphNode represents a node in a heap graph.
244 */ 244 */
245 class V8EXPORT HeapGraphNode { 245 class V8EXPORT HeapGraphNode {
246 public: 246 public:
247 enum Type { 247 enum Type {
248 kInternal = 0, // For compatibility, will be removed.
249 kHidden = 0, // Hidden node, may be filtered when shown to user. 248 kHidden = 0, // Hidden node, may be filtered when shown to user.
250 kArray = 1, // An array of elements. 249 kArray = 1, // An array of elements.
251 kString = 2, // A string. 250 kString = 2, // A string.
252 kObject = 3, // A JS object (except for arrays and strings). 251 kObject = 3, // A JS object (except for arrays and strings).
253 kCode = 4, // Compiled code. 252 kCode = 4, // Compiled code.
254 kClosure = 5, // Function closure. 253 kClosure = 5, // Function closure.
255 kRegExp = 6, // RegExp. 254 kRegExp = 6, // RegExp.
256 kHeapNumber = 7 // Number stored in the heap. 255 kHeapNumber = 7 // Number stored in the heap.
257 }; 256 };
258 257
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 405
407 /** Returns a profile by uid. */ 406 /** Returns a profile by uid. */
408 static const HeapSnapshot* FindSnapshot(unsigned uid); 407 static const HeapSnapshot* FindSnapshot(unsigned uid);
409 408
410 /** 409 /**
411 * Takes a heap snapshot and returns it. Title may be an empty string. 410 * Takes a heap snapshot and returns it. Title may be an empty string.
412 * See HeapSnapshot::Type for types description. 411 * See HeapSnapshot::Type for types description.
413 */ 412 */
414 static const HeapSnapshot* TakeSnapshot( 413 static const HeapSnapshot* TakeSnapshot(
415 Handle<String> title, 414 Handle<String> title,
416 HeapSnapshot::Type type = HeapSnapshot::kFull); 415 HeapSnapshot::Type type = HeapSnapshot::kFull,
416 ActivityControl* control = NULL);
417 }; 417 };
418 418
419 419
420 } // namespace v8 420 } // namespace v8
421 421
422 422
423 #undef V8EXPORT 423 #undef V8EXPORT
424 424
425 425
426 #endif // V8_V8_PROFILER_H_ 426 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698