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

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

Issue 9858016: I'd like to add HeapSnapshot::GetMaxSnapshotJSObjectId function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix. In some cases v8_str doesn't introduce new string in the heap. As result both snapshot have eq… Created 8 years, 9 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 /** Returns a node by its id. */ 341 /** Returns a node by its id. */
342 const HeapGraphNode* GetNodeById(SnapshotObjectId id) const; 342 const HeapGraphNode* GetNodeById(SnapshotObjectId id) const;
343 343
344 /** Returns total nodes count in the snapshot. */ 344 /** Returns total nodes count in the snapshot. */
345 int GetNodesCount() const; 345 int GetNodesCount() const;
346 346
347 /** Returns a node by index. */ 347 /** Returns a node by index. */
348 const HeapGraphNode* GetNode(int index) const; 348 const HeapGraphNode* GetNode(int index) const;
349 349
350 /** Returns a max seen JS object Id. */
351 SnapshotObjectId GetMaxSnapshotJSObjectId() const;
352
350 /** 353 /**
351 * Deletes the snapshot and removes it from HeapProfiler's list. 354 * Deletes the snapshot and removes it from HeapProfiler's list.
352 * All pointers to nodes, edges and paths previously returned become 355 * All pointers to nodes, edges and paths previously returned become
353 * invalid. 356 * invalid.
354 */ 357 */
355 void Delete(); 358 void Delete();
356 359
357 /** 360 /**
358 * Prepare a serialized representation of the snapshot. The result 361 * Prepare a serialized representation of the snapshot. The result
359 * is written into the stream provided in chunks of specified size. 362 * is written into the stream provided in chunks of specified size.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 }; 514 };
512 515
513 516
514 } // namespace v8 517 } // namespace v8
515 518
516 519
517 #undef V8EXPORT 520 #undef V8EXPORT
518 521
519 522
520 #endif // V8_V8_PROFILER_H_ 523 #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