OLD | NEW |
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 */ | 314 */ |
315 class V8EXPORT HeapSnapshot { | 315 class V8EXPORT HeapSnapshot { |
316 public: | 316 public: |
317 enum Type { | 317 enum Type { |
318 kFull = 0 // Heap snapshot with all instances and references. | 318 kFull = 0 // Heap snapshot with all instances and references. |
319 }; | 319 }; |
320 enum SerializationFormat { | 320 enum SerializationFormat { |
321 kJSON = 0 // See format description near 'Serialize' method. | 321 kJSON = 0 // See format description near 'Serialize' method. |
322 }; | 322 }; |
323 | 323 |
324 /** Returns heap snapshot type. */ | 324 /** Deprecated. Returns kFull. */ |
325 Type GetType() const; | 325 V8_DEPRECATED(Type GetType() const); |
326 | 326 |
327 /** Returns heap snapshot UID (assigned by the profiler.) */ | 327 /** Returns heap snapshot UID (assigned by the profiler.) */ |
328 unsigned GetUid() const; | 328 unsigned GetUid() const; |
329 | 329 |
330 /** Returns heap snapshot title. */ | 330 /** Returns heap snapshot title. */ |
331 Handle<String> GetTitle() const; | 331 Handle<String> GetTitle() const; |
332 | 332 |
333 /** Returns the root node of the heap graph. */ | 333 /** Returns the root node of the heap graph. */ |
334 const HeapGraphNode* GetRoot() const; | 334 const HeapGraphNode* GetRoot() const; |
335 | 335 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 }; | 444 }; |
445 | 445 |
446 /** Deprecated. Use TakeHeapSnapshot instead. */ | 446 /** Deprecated. Use TakeHeapSnapshot instead. */ |
447 static const HeapSnapshot* TakeSnapshot( | 447 static const HeapSnapshot* TakeSnapshot( |
448 Handle<String> title, | 448 Handle<String> title, |
449 HeapSnapshot::Type type = HeapSnapshot::kFull, | 449 HeapSnapshot::Type type = HeapSnapshot::kFull, |
450 ActivityControl* control = NULL, | 450 ActivityControl* control = NULL, |
451 ObjectNameResolver* global_object_name_resolver = NULL); | 451 ObjectNameResolver* global_object_name_resolver = NULL); |
452 /** | 452 /** |
453 * Takes a heap snapshot and returns it. Title may be an empty string. | 453 * Takes a heap snapshot and returns it. Title may be an empty string. |
454 * See HeapSnapshot::Type for types description. | |
455 */ | 454 */ |
456 const HeapSnapshot* TakeHeapSnapshot( | 455 const HeapSnapshot* TakeHeapSnapshot( |
457 Handle<String> title, | 456 Handle<String> title, |
458 ActivityControl* control = NULL, | 457 ActivityControl* control = NULL, |
459 ObjectNameResolver* global_object_name_resolver = NULL); | 458 ObjectNameResolver* global_object_name_resolver = NULL); |
460 | 459 |
461 | 460 |
462 /** Deprecated. Use StartTrackingHeapObjects instead. */ | 461 /** Deprecated. Use StartTrackingHeapObjects instead. */ |
463 static void StartHeapObjectsTracking(); | 462 static void StartHeapObjectsTracking(); |
464 /** | 463 /** |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 }; | 621 }; |
623 | 622 |
624 | 623 |
625 } // namespace v8 | 624 } // namespace v8 |
626 | 625 |
627 | 626 |
628 #undef V8EXPORT | 627 #undef V8EXPORT |
629 | 628 |
630 | 629 |
631 #endif // V8_V8_PROFILER_H_ | 630 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |