blob: 14a400cc21e59e8685155692e07ae71fdc4689b9 [file] [log] [blame]
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.dev.util.log.speedtracer;
import com.google.gwt.dev.util.log.speedtracer.SpeedTracerLogger.EventType;
/**
* Represents a type of event whose performance is tracked while running
* {@link com.google.gwt.dev.DevMode}
*/
public enum DevModeEventType implements EventType {
CLASS_BYTES_REWRITE("Class bytes rewrite", "DarkBlue"), //
CREATE_UI("Create UI", "BlueViolet"), //
CSB_ADD_GENERATED_TYPES("CSB Add Generated Types", "SteelBlue"), //
CSB_BUILD_FROM_ORACLE("CSB Build From Oracle", "SlateGray"), //
CSB_PROCESS("CSB Process", "Teal"), //
COMP_STATE_ADD_GENERATED_UNITS("Comp State Add Generated Units", "Brown"), //
DELETE_CACHE("Delete Persistent Cache", "summersky"), //
JAVA_TO_JS_CALL("Java to JS call", "LightSkyBlue"), //
JETTY_STARTUP("Jetty startup", "Orchid"), //
JS_TO_JAVA_CALL("JS to Java call", "Orange"), //
LOAD_JSNI("Parse and Load JSNI", "LightCoral"), //
LOAD_PERSISTENT_UNIT_CACHE("Load Persistent Units", "Thistle"), //
MODULE_INIT("Module init", "Khaki"), //
MODULE_SPACE_CLASS_LOAD("ModuleSpace class load", "MintCream"), //
MODULE_SPACE_HOST_CREATE("ModuleSpaceHost create", "Peachpuff"), //
MODULE_SPACE_HOST_READY("ModuleSpaceHost ready", "Linen"), //
MODULE_SPACE_LOAD("ModuleSpace load", "LemonChiffon"), //
MODULE_SPACE_REBIND_AND_CREATE("ModuleSpace rebindAndCreate", "Crimson"), //
ON_MODULE_LOAD("onModuleLoad", "LightGreen"), //
REBIND("Rebind", "DarkOrange"), //
SLOW_STARTUP("Slow startup", "DarkSeaGreen"), //
STARTUP("Startup", "LimeGreen");
final String cssColor;
final String name;
DevModeEventType(String name, String cssColor) {
this.name = name;
this.cssColor = cssColor;
}
public String getColor() {
return cssColor;
}
public String getName() {
return name;
}
}