Example usage for com.google.gwt.core.client JsArrayString join

List of usage examples for com.google.gwt.core.client JsArrayString join

Introduction

In this page you can find the example usage for com.google.gwt.core.client JsArrayString join.

Prototype

public final String join() 

Source Link

Document

Convert each element of the array to a String and join them with a comma separator.

Usage

From source file:com.google.speedtracer.client.model.JavaScriptProfileModelV8Impl.java

License:Apache License

/**
 * Parse a profiler entry// w w w .j ava2 s . c om
 * 
 * The format of this entry is:
 * 
 * profiler, "type", ...
 */
private void parseV8ProfilerEntry(JsArrayString logEntries) {
    final String arg = logEntries.get(1);
    if (arg.equals("compression")) {
        int windowSize = Integer.parseInt(logEntries.get(2));
        this.logDecompressor = new V8LogDecompressor(windowSize);
    } else if (arg.equals("begin")) {
        // TODO(zundel): make sure all state is reset
        populateAddressTags();
    } else if (arg.equals("pause") || arg.equals("resume")) {
        // ignore pause and resume entries.
    } else if (ClientConfig.isDebugMode()) {
        Logging.getLogger().logText("Ignoring profiler command: " + logEntries.join());
    }
}