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

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

Issue 9223009: Detailed heap snapshot usability improvement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix for coding style problem Created 8 years, 11 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') | src/profile-generator.cc » ('J')
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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 /** Returns whether two instances are equivalent. */ 469 /** Returns whether two instances are equivalent. */
470 virtual bool IsEquivalent(RetainedObjectInfo* other) = 0; 470 virtual bool IsEquivalent(RetainedObjectInfo* other) = 0;
471 471
472 /** 472 /**
473 * Returns hash value for the instance. Equivalent instances 473 * Returns hash value for the instance. Equivalent instances
474 * must have the same hash value. 474 * must have the same hash value.
475 */ 475 */
476 virtual intptr_t GetHash() = 0; 476 virtual intptr_t GetHash() = 0;
477 477
478 /** 478 /**
479 * Returns human-readable label. It must be a NUL-terminated UTF-8 479 * Returns human-readable label. It must be a NULL-terminated UTF-8
mnaganov (inactive) 2012/01/27 09:53:17 Let's change it to "null-terminated" then: http://
480 * encoded string. V8 copies its contents during a call to GetLabel. 480 * encoded string. V8 copies its contents during a call to GetLabel.
481 */ 481 */
482 virtual const char* GetLabel() = 0; 482 virtual const char* GetLabel() = 0;
483 483
484 /** 484 /**
485 * Returns human-readable group label. It must be a NULL-terminated UTF-8
486 * encoded string. V8 copies its contents during a call to GetGroupLabel.
mnaganov (inactive) 2012/01/27 09:53:17 Please elaborate more on this -- what's the differ
487 */
488 virtual const char* GetGroupLabel() { return GetLabel(); }
489
490 /**
485 * Returns element count in case if a global handle retains 491 * Returns element count in case if a global handle retains
486 * a subgraph by holding one of its nodes. 492 * a subgraph by holding one of its nodes.
487 */ 493 */
488 virtual intptr_t GetElementCount() { return -1; } 494 virtual intptr_t GetElementCount() { return -1; }
489 495
490 /** Returns embedder's object size in bytes. */ 496 /** Returns embedder's object size in bytes. */
491 virtual intptr_t GetSizeInBytes() { return -1; } 497 virtual intptr_t GetSizeInBytes() { return -1; }
492 498
493 protected: 499 protected:
494 RetainedObjectInfo() {} 500 RetainedObjectInfo() {}
495 virtual ~RetainedObjectInfo() {} 501 virtual ~RetainedObjectInfo() {}
496 502
497 private: 503 private:
498 RetainedObjectInfo(const RetainedObjectInfo&); 504 RetainedObjectInfo(const RetainedObjectInfo&);
499 RetainedObjectInfo& operator=(const RetainedObjectInfo&); 505 RetainedObjectInfo& operator=(const RetainedObjectInfo&);
500 }; 506 };
501 507
502 508
503 } // namespace v8 509 } // namespace v8
504 510
505 511
506 #undef V8EXPORT 512 #undef V8EXPORT
507 513
508 514
509 #endif // V8_V8_PROFILER_H_ 515 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/profile-generator.h » ('j') | src/profile-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698