System.err.println("DashboardDataStore.get(): timestamp property has wrong type: "
+ timestampObj.getClass().getName() + ". Expected Long or Double.");
timestamp = Double.valueOf(-1);
}
DashboardRecord result = new DashboardRecord(timestamp.longValue(),
(String) properties.get(KEY_PROP_NAME),
(String) properties.get(KEY_PROP_REVISION));
result.setBootstrapDuration(getDoubleProperty(properties,
PROP_BOOTSTRAP_DURATION));
result.setBootstrapStartTime(getDoubleProperty(properties,
PROP_BOOTSTRAP_START_TIME));
result.setDomContentLoadedTime(getDoubleProperty(properties,
PROP_DOM_CONTENT_LOADED_TIME));
result.setEvalScriptDuration(getDoubleProperty(properties,
PROP_EVAL_SCRIPT_DURATION));
result.setGarbageCollectionDuration(getDoubleProperty(properties,
PROP_GARBAGE_COLLECTION_DURATION));
result.setJavaScriptExecutionDuration(getDoubleProperty(properties,
PROP_JAVASCRIPT_EXECUTION_DURATION));
result.setLayoutDuration(getDoubleProperty(properties, PROP_LAYOUT_DURATION));
result.setLoadEventTime(getDoubleProperty(properties, PROP_LOAD_EVENT_TIME));
result.setLoadExternalRefsDuration(getDoubleProperty(properties,
PROP_LOAD_EXTERNAL_REFS_DURATION));
result.setLoadExternalRefsTime(getDoubleProperty(properties,
PROP_LOAD_EXTERNAL_REFS_TIME));
result.setMainResourceRequestTime(getDoubleProperty(properties,
PROP_MAIN_RESOURCE_REQUEST_TIME));
result.setMainResourceResponseTime(getDoubleProperty(properties,
PROP_MAIN_RESOURCE_RESPONSE_TIME));
result.setModuleEvalDuration(getDoubleProperty(properties,
PROP_MODULE_EVAL_DURATION));
result.setModuleStartupTime(getDoubleProperty(properties,
PROP_MODULE_STARTUP_TIME));
result.setModuleStartupDuration(getDoubleProperty(properties,
PROP_MODULE_STARTUP_DURATION));
result.setPaintDuration(getDoubleProperty(properties, PROP_PAINT_DURATION));
result.setParseHtmlDuration(getDoubleProperty(properties,
PROP_PARSE_HTML_DURATION));
result.setRecalculateStyleDuration(getDoubleProperty(properties,
PROP_RECALCULATE_STYLE_DURATION));
return result;
}