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

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

Issue 9139018: Provide a way for iterating through all external strings referenced from the JS heap (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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/api.cc » ('j') | src/heap-profiler.h » ('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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 static void DefineWrapperClass( 427 static void DefineWrapperClass(
428 uint16_t class_id, 428 uint16_t class_id,
429 WrapperInfoCallback callback); 429 WrapperInfoCallback callback);
430 430
431 /** 431 /**
432 * Default value of persistent handle class ID. Must not be used to 432 * Default value of persistent handle class ID. Must not be used to
433 * define a class. Can be used to reset a class of a persistent 433 * define a class. Can be used to reset a class of a persistent
434 * handle. 434 * handle.
435 */ 435 */
436 static const uint16_t kPersistentHandleNoClassId = 0; 436 static const uint16_t kPersistentHandleNoClassId = 0;
437
438
439 /**
440 * Interface for iterating though all external resource in the heap.
441 */
442 class ExternalResourceVisitor {
mnaganov (inactive) 2012/01/11 18:50:23 You need to put V8EXPORT before the class name.
yurys 2012/01/11 19:50:13 Done.
443 public:
444 virtual void VisitExternalString(Handle<String> string) {}
445 virtual ~ExternalResourceVisitor() {}
mnaganov (inactive) 2012/01/11 18:50:23 Destructor must be the first.
yurys 2012/01/11 19:50:13 Done.
446 };
447
448 /**
449 * Iterates through all external resources referenced from current isolate
450 * heap.
451 */
452 static void VisitExternalResources(ExternalResourceVisitor* visitor);
mnaganov (inactive) 2012/01/11 18:50:23 I'm not sure HeapProfiler class is a good place fo
yurys 2012/01/11 19:50:13 Since it is used to analyze heap I decided to put
437 }; 453 };
438 454
439 455
440 /** 456 /**
441 * Interface for providing information about embedder's objects 457 * Interface for providing information about embedder's objects
442 * held by global handles. This information is reported in two ways: 458 * held by global handles. This information is reported in two ways:
443 * 459 *
444 * 1. When calling AddObjectGroup, an embedder may pass 460 * 1. When calling AddObjectGroup, an embedder may pass
445 * RetainedObjectInfo instance describing the group. To collect 461 * RetainedObjectInfo instance describing the group. To collect
446 * this information while taking a heap snapshot, V8 calls GC 462 * this information while taking a heap snapshot, V8 calls GC
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 }; 516 };
501 517
502 518
503 } // namespace v8 519 } // namespace v8
504 520
505 521
506 #undef V8EXPORT 522 #undef V8EXPORT
507 523
508 524
509 #endif // V8_V8_PROFILER_H_ 525 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/heap-profiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698