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

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

Issue 10110001: Push heap stats as HeapStatsUpdate struct instead of raw array of uint32_t values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fields of HeapStatsUpdate struct were commented. Created 8 years, 8 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 | « include/v8.h ('k') | src/profile-generator.h » ('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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/profile-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698