| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_V8_PROFILER_H_ | 5 #ifndef V8_V8_PROFILER_H_ |
| 6 #define V8_V8_PROFILER_H_ | 6 #define V8_V8_PROFILER_H_ |
| 7 | 7 |
| 8 #include "v8.h" | 8 #include "v8.h" |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 * will not be called in case writing was aborted. | 285 * will not be called in case writing was aborted. |
| 286 */ | 286 */ |
| 287 virtual WriteResult WriteAsciiChunk(char* data, int size) = 0; | 287 virtual WriteResult WriteAsciiChunk(char* data, int size) = 0; |
| 288 /** | 288 /** |
| 289 * Writes the next chunk of heap stats data into the stream. Writing | 289 * Writes the next chunk of heap stats data into the stream. Writing |
| 290 * can be stopped by returning kAbort as function result. EndOfStream | 290 * can be stopped by returning kAbort as function result. EndOfStream |
| 291 * will not be called in case writing was aborted. | 291 * will not be called in case writing was aborted. |
| 292 */ | 292 */ |
| 293 virtual WriteResult WriteHeapStatsChunk(HeapStatsUpdate* data, int count) { | 293 virtual WriteResult WriteHeapStatsChunk(HeapStatsUpdate* data, int count) { |
| 294 return kAbort; | 294 return kAbort; |
| 295 }; | 295 } |
| 296 }; | 296 }; |
| 297 | 297 |
| 298 | 298 |
| 299 /** | 299 /** |
| 300 * HeapSnapshots record the state of the JS heap at some moment. | 300 * HeapSnapshots record the state of the JS heap at some moment. |
| 301 */ | 301 */ |
| 302 class V8_EXPORT HeapSnapshot { | 302 class V8_EXPORT HeapSnapshot { |
| 303 public: | 303 public: |
| 304 enum SerializationFormat { | 304 enum SerializationFormat { |
| 305 kJSON = 0 // See format description near 'Serialize' method. | 305 kJSON = 0 // See format description near 'Serialize' method. |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 uint32_t index; // Index of the time interval that was changed. | 601 uint32_t index; // Index of the time interval that was changed. |
| 602 uint32_t count; // New value of count field for the interval with this index. | 602 uint32_t count; // New value of count field for the interval with this index. |
| 603 uint32_t size; // New value of size field for the interval with this index. | 603 uint32_t size; // New value of size field for the interval with this index. |
| 604 }; | 604 }; |
| 605 | 605 |
| 606 | 606 |
| 607 } // namespace v8 | 607 } // namespace v8 |
| 608 | 608 |
| 609 | 609 |
| 610 #endif // V8_V8_PROFILER_H_ | 610 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |