Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion include/v8like-debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class EXPORT Debug
class Message
{
public:
virtual Isolate* GetIsolate() const = 0;
virtual bool IsEvent() const = 0;
virtual bool IsResponse() const = 0;
virtual DebugEvent GetEvent() const = 0;
Expand All @@ -108,7 +109,8 @@ class EXPORT Debug

typedef void (*EventCallback)(DebugEvent event, Handle<Object> exec_state, Handle<Object> event_data, Handle<Value> data);
typedef void (*EventCallback2)(const EventDetails& event_details);
typedef void (*MessageHandler)(const uint16_t* message, int length, ClientData* client_data);
typedef void(*MessageHandler)(const Message& message);
// typedef void (*MessageHandler)(const uint16_t* message, int length, ClientData* client_data);
typedef void (*MessageHandler2)(const Message& message);
typedef void (*HostDispatchHandler)();
typedef void (*DebugMessageDispatchHandler)();
Expand All @@ -121,6 +123,10 @@ class EXPORT Debug
static void SetMessageHandler(MessageHandler handler, bool message_handler_thread = false);
static void SetMessageHandler2(MessageHandler2 handler);
static void SendCommand(const uint16_t* command, int length, ClientData* client_data = NULL, Isolate* isolate = NULL);
static void SendCommand(Isolate* isolate, const uint16_t* command, int length, ClientData* client_data = NULL, Isolate* isolate1 = NULL)
{
SendCommand(command, length, client_data, isolate);
}
static void SetHostDispatchHandler(HostDispatchHandler handler, int period = 100);
static void SetDebugMessageDispatchHandler(DebugMessageDispatchHandler handler, bool provide_locker = false);
static Local<Value> Call(v8::Handle<v8::Function> fun, Handle<Value> data = Handle<Value>());
Expand Down
6 changes: 6 additions & 0 deletions include/v8like-profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class V8EXPORT CpuProfiler
static void StartProfiling(Handle<String> title);
static const CpuProfile* StopProfiling(Handle<String> title, Handle<Value> security_token = Handle<Value>());
static void DeleteAllProfiles();

void SetIdle(bool v);
};

class HeapGraphNode;
Expand Down Expand Up @@ -168,6 +170,7 @@ class RetainedObjectInfo;
class V8EXPORT HeapProfiler
{
public:
HeapProfiler(){}
typedef RetainedObjectInfo* (*WrapperInfoCallback)(uint16_t class_id, Handle<Value> wrapper);
static int GetSnapshotsCount();
static const HeapSnapshot* GetSnapshot(int index);
Expand All @@ -183,6 +186,9 @@ class V8EXPORT HeapProfiler
static const uint16_t kPersistentHandleNoClassId = 0;
static int GetPersistentHandleCount();
static size_t GetMemorySizeUsedByProfiler();
void SetWrapperClassInfoProvider(
uint16_t class_id,
WrapperInfoCallback callback);
};

class V8EXPORT RetainedObjectInfo
Expand Down
Loading