
public final class SpeedTracerLogger extends Object
Enable logging by setting the system property gwt.speedtracerlog to
the output file path.
| Modifier and Type | Class and Description |
|---|---|
class |
SpeedTracerLogger.Event
Represents a node in a tree of SpeedTracer events.
|
static interface |
SpeedTracerLogger.EventType
Enumerated types for logging events implement this interface.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addData(String... data)
Annotate the current event on the top of the stack with more information.
|
void |
addDataImpl(String... data) |
static void |
init()
Create a new global instance.
|
static boolean |
jsniCallLoggingEnabled()
Returns true if JSNI calls and callbacks are being logged.
|
static void |
markTimeline(String message)
Adds a LOG_MESSAGE SpeedTracer event to the log.
|
void |
markTimelineImpl(String message) |
static SpeedTracerLogger.Event |
start(DevModeSession session,
SpeedTracerLogger.EventType type,
String... data)
Signals that a new event has started.
|
static SpeedTracerLogger.Event |
start(SpeedTracerLogger.EventType type,
String... data)
Signals that a new event has started.
|
public static void addData(String... data)
data - JSON property, value pair to add to current event.public static void init()
-Dgwt.speedtracerlog VM property.
This method is only intended to be called once.public static boolean jsniCallLoggingEnabled()
public static void markTimeline(String message)
public static SpeedTracerLogger.Event start(SpeedTracerLogger.EventType type, String... data)
start. You may nest timing calls.
Has the same effect as calling
start(DevModeSession.getSessionForCurrentThread(), type, data).
type - the type of eventdata - a set of key-value pairs (each key is followed by its value)
that contain additional information about the eventpublic static SpeedTracerLogger.Event start(DevModeSession session, SpeedTracerLogger.EventType type, String... data)
start. You may nest timing calls.session - the devmode session with which this event is associated or
null if no devmode session is activetype - the type of eventdata - a set of key-value pairs (each key is followed by its value) that
contain additional information about the eventpublic void addDataImpl(String... data)
public void markTimelineImpl(String message)
Copyright © 2018. All rights reserved.