From 0eb8b337a936d8b39fb9a8793bafb83a302c86f5 Mon Sep 17 00:00:00 2001
From: Bogdan Udrescu <set-property name="vaadin.profiler" value="true" />
to
* your .gwt.xml file.
- *
+ *
* @author Vaadin Ltd
* @since 7.0.0
*/
public class Profiler {
/**
* Class to include using deferred binding to enable the profiling.
- *
+ *
* @author Vaadin Ltd
* @since 7.0.0
*/
@@ -101,7 +101,7 @@ public class Profiler {
/**
* Checks whether the profiling gathering is enabled.
- *
+ *
* @return true
if the profiling is enabled, else
* false
*/
@@ -115,7 +115,7 @@ public class Profiler {
* Enters a named block. There should always be a matching invocation of
* {@link #leave(String)} when leaving the block. Calls to this method will
* be removed by the compiler unless profiling is enabled.
- *
+ *
* @param name
* the name of the entered block
*/
@@ -129,7 +129,7 @@ public class Profiler {
* Leaves a named block. There should always be a matching invocation of
* {@link #enter(String)} when entering the block. Calls to this method will
* be removed by the compiler unless profiling is enabled.
- *
+ *
* @param name
* the name of the left block
*/
@@ -178,7 +178,7 @@ public class Profiler {
* enabled because it will then remove a logger function that might have
* been included in the HTML page and that would leak memory unless removed.
*
true
if the profiling is enabled, else
* false
*/
@@ -352,7 +352,7 @@ public class Profiler {
if (typeof $wnd.__gwtStatsEvent != 'function') {
if (typeof $wnd.vaadin.gwtStatsEvents != 'object') {
$wnd.vaadin.gwtStatsEvents = [];
- }
+ }
$wnd.__gwtStatsEvent = function(event) {
$wnd.vaadin.gwtStatsEvents.push(event);
return true;
@@ -369,9 +369,9 @@ public class Profiler {
if (typeof $wnd.vaadin.gwtStatsEvents == 'object') {
delete $wnd.vaadin.gwtStatsEvents;
if (typeof $wnd.__gwtStatsEvent == 'function') {
- $wnd.__gwtStatsEvent = function(){};
+ $wnd.__gwtStatsEvent = function() { return true; };
}
- }
+ }
}-*/;
private static native JsArray* Warning! This is internal API and should not be used by * applications or add-ons. - * + * * @since 7.1.4 * @param profilerResultConsumer * the consumer that gets profiler data -- cgit v1.2.3