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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 protected: | 552 protected: |
553 RetainedObjectInfo() {} | 553 RetainedObjectInfo() {} |
554 virtual ~RetainedObjectInfo() {} | 554 virtual ~RetainedObjectInfo() {} |
555 | 555 |
556 private: | 556 private: |
557 RetainedObjectInfo(const RetainedObjectInfo&); | 557 RetainedObjectInfo(const RetainedObjectInfo&); |
558 RetainedObjectInfo& operator=(const RetainedObjectInfo&); | 558 RetainedObjectInfo& operator=(const RetainedObjectInfo&); |
559 }; | 559 }; |
560 | 560 |
561 | 561 |
| 562 /** |
| 563 * A struct for exporting HeapStats data from V8, using "push" model. |
| 564 */ |
| 565 struct HeapStatsUpdate { |
| 566 HeapStatsUpdate(uint32_t index, uint32_t count, uint32_t size) |
| 567 : index(index), count(count), size(size) { } |
| 568 uint32_t index; // Index of the time interval that was changed. |
| 569 uint32_t count; // New value of count field for the interval with this index. |
| 570 uint32_t size; // New value of size field for the interval with this index. |
| 571 }; |
| 572 |
| 573 |
562 } // namespace v8 | 574 } // namespace v8 |
563 | 575 |
564 | 576 |
565 #undef V8EXPORT | 577 #undef V8EXPORT |
566 | 578 |
567 | 579 |
568 #endif // V8_V8_PROFILER_H_ | 580 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |