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

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

Issue 10535096: Implement heap profiler memory usage reporting. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Make sizeof to be conformant to C++ guide. Created 8 years, 6 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 | « no previous file | 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 475
476 /** 476 /**
477 * Default value of persistent handle class ID. Must not be used to 477 * Default value of persistent handle class ID. Must not be used to
478 * define a class. Can be used to reset a class of a persistent 478 * define a class. Can be used to reset a class of a persistent
479 * handle. 479 * handle.
480 */ 480 */
481 static const uint16_t kPersistentHandleNoClassId = 0; 481 static const uint16_t kPersistentHandleNoClassId = 0;
482 482
483 /** Returns the number of currently existing persistent handles. */ 483 /** Returns the number of currently existing persistent handles. */
484 static int GetPersistentHandleCount(); 484 static int GetPersistentHandleCount();
485
486 /** Returns memory used for profiler internal data and snapshots. */
487 static size_t GetMemorySizeUsedByProfiler();
yurys 2012/06/18 07:28:28 nit: I would include units into the name: GetMemor
485 }; 488 };
486 489
487 490
488 /** 491 /**
489 * Interface for providing information about embedder's objects 492 * Interface for providing information about embedder's objects
490 * held by global handles. This information is reported in two ways: 493 * held by global handles. This information is reported in two ways:
491 * 494 *
492 * 1. When calling AddObjectGroup, an embedder may pass 495 * 1. When calling AddObjectGroup, an embedder may pass
493 * RetainedObjectInfo instance describing the group. To collect 496 * RetainedObjectInfo instance describing the group. To collect
494 * this information while taking a heap snapshot, V8 calls GC 497 * this information while taking a heap snapshot, V8 calls GC
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 }; 575 };
573 576
574 577
575 } // namespace v8 578 } // namespace v8
576 579
577 580
578 #undef V8EXPORT 581 #undef V8EXPORT
579 582
580 583
581 #endif // V8_V8_PROFILER_H_ 584 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698