v8-profiler.h   v8-profiler.h 
skipping to change at line 280 skipping to change at line 280
uint64_t GetId() const; uint64_t GetId() const;
/** Returns node's own size, in bytes. */ /** Returns node's own size, in bytes. */
int GetSelfSize() const; int GetSelfSize() const;
/** /**
* Returns node's retained size, in bytes. That is, self + sizes of * Returns node's retained size, in bytes. That is, self + sizes of
* the objects that are reachable only from this object. In other * the objects that are reachable only from this object. In other
* words, the size of memory that will be reclaimed having this node * words, the size of memory that will be reclaimed having this node
* collected. * collected.
*
* Exact retained size calculation has O(N) (number of nodes)
* computational complexity, while approximate has O(1). It is
* assumed that initially heap profiling tools provide approximate
* sizes for all nodes, and then exact sizes are calculated for the
* most 'interesting' nodes.
*/ */
int GetRetainedSize(bool exact) const; int GetRetainedSize() const;
/** Returns child nodes count of the node. */ /** Returns child nodes count of the node. */
int GetChildrenCount() const; int GetChildrenCount() const;
/** Retrieves a child by index. */ /** Retrieves a child by index. */
const HeapGraphEdge* GetChild(int index) const; const HeapGraphEdge* GetChild(int index) const;
/** Returns retainer nodes count of the node. */ /** Returns retainer nodes count of the node. */
int GetRetainersCount() const; int GetRetainersCount() const;
 End of changes. 2 change blocks. 
7 lines changed or deleted 1 lines changed or added


 v8.h   v8.h 
skipping to change at line 2790 skipping to change at line 2790
char** raw_data; char** raw_data;
}; };
/** /**
* EntropySource is used as a callback function when v8 needs a source * EntropySource is used as a callback function when v8 needs a source
* of entropy. * of entropy.
*/ */
typedef bool (*EntropySource)(unsigned char* buffer, size_t length); typedef bool (*EntropySource)(unsigned char* buffer, size_t length);
/** /**
* ReturnAddressLocationResolver is used as a callback function when v8 is
* resolving the location of a return address on the stack. Profilers that
* change the return address on the stack can use this to resolve the stack
* location to whereever the profiler stashed the original return address.
* When invoked, return_addr_location will point to a location on stack whe
re
* a machine return address resides, this function should return either the
* same pointer, or a pointer to the profiler's copy of the original return
* address.
*/
typedef uintptr_t (*ReturnAddressLocationResolver)(
uintptr_t return_addr_location);
/**
* Interface for iterating though all external resources in the heap. * Interface for iterating though all external resources in the heap.
*/ */
class V8EXPORT ExternalResourceVisitor { // NOLINT class V8EXPORT ExternalResourceVisitor { // NOLINT
public: public:
virtual ~ExternalResourceVisitor() {} virtual ~ExternalResourceVisitor() {}
virtual void VisitExternalString(Handle<String> string) {} virtual void VisitExternalString(Handle<String> string) {}
}; };
/** /**
* Container class for static utility functions. * Container class for static utility functions.
skipping to change at line 3042 skipping to change at line 3055
*/ */
static bool Initialize(); static bool Initialize();
/** /**
* Allows the host application to provide a callback which can be used * Allows the host application to provide a callback which can be used
* as a source of entropy for random number generators. * as a source of entropy for random number generators.
*/ */
static void SetEntropySource(EntropySource source); static void SetEntropySource(EntropySource source);
/** /**
* Allows the host application to provide a callback that allows v8 to
* cooperate with a profiler that rewrites return addresses on stack.
*/
static void SetReturnAddressLocationResolver(
ReturnAddressLocationResolver return_address_resolver);
/**
* Adjusts the amount of registered external memory. Used to give * Adjusts the amount of registered external memory. Used to give
* V8 an indication of the amount of externally allocated memory * V8 an indication of the amount of externally allocated memory
* that is kept alive by JavaScript objects. V8 uses this to decide * that is kept alive by JavaScript objects. V8 uses this to decide
* when to perform global garbage collections. Registering * when to perform global garbage collections. Registering
* externally allocated memory will trigger global garbage * externally allocated memory will trigger global garbage
* collections more often than otherwise in an attempt to garbage * collections more often than otherwise in an attempt to garbage
* collect the JavaScript objects keeping the externally allocated * collect the JavaScript objects keeping the externally allocated
* memory alive. * memory alive.
* *
* \param change_in_bytes the change in externally allocated memory * \param change_in_bytes the change in externally allocated memory
 End of changes. 2 change blocks. 
0 lines changed or deleted 21 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/