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

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

Issue 10086004: Add size metric into Heap Stats. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments addressed 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 | « no previous file | 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 * this method, all heap objects relocations done by the garbage collector 422 * this method, all heap objects relocations done by the garbage collector
423 * are being registered. 423 * are being registered.
424 */ 424 */
425 static void StartHeapObjectsTracking(); 425 static void StartHeapObjectsTracking();
426 426
427 /** 427 /**
428 * Adds a new time interval entry to the aggregated statistics array. The 428 * Adds a new time interval entry to the aggregated statistics array. The
429 * time interval entry contains information on the current heap objects 429 * time interval entry contains information on the current heap objects
430 * population size. The method also updates aggregated statistics and 430 * population size. The method also updates aggregated statistics and
431 * reports updates for all previous time intervals via the OutputStream 431 * reports updates for all previous time intervals via the OutputStream
432 * object. Updates on each time interval are provided as pairs of time 432 * object. Updates on each time interval are provided as a triplet. It has
433 * interval index and updated heap objects count. 433 * time interval index, updated heap objects count and updated heap objects
434 * size.
434 * 435 *
435 * StartHeapObjectsTracking must be called before the first call to this 436 * StartHeapObjectsTracking must be called before the first call to this
436 * method. 437 * method.
437 */ 438 */
438 static void PushHeapObjectsStats(OutputStream* stream); 439 static void PushHeapObjectsStats(OutputStream* stream);
439 440
440 /** 441 /**
441 * Stops tracking of heap objects population statistics, cleans up all 442 * Stops tracking of heap objects population statistics, cleans up all
442 * collected data. StartHeapObjectsTracking must be called again prior to 443 * collected data. StartHeapObjectsTracking must be called again prior to
443 * calling PushHeapObjectsStats next time. 444 * calling PushHeapObjectsStats next time.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 }; 542 };
542 543
543 544
544 } // namespace v8 545 } // namespace v8
545 546
546 547
547 #undef V8EXPORT 548 #undef V8EXPORT
548 549
549 550
550 #endif // V8_V8_PROFILER_H_ 551 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/profile-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698