com.xpn.xwiki.wysiwyg.client.util
Class Console

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.util.Console
Direct Known Subclasses:
FirebugConsole

public class Console
extends java.lang.Object


Constructor Summary
Console()
           
 
Method Summary
 void count(java.lang.String title)
          Writes the number of times that the line of code where count was called was executed.
static Console getInstance()
           
 void profile(java.lang.String title)
          Turns on the JavaScript profiler.
 void profileEnd()
          Turns off the JavaScript profiler and prints its report.
 void time(java.lang.String name)
          Creates a new timer under the given name.
 void timeEnd(java.lang.String name)
          Stops a timer created by a call to time(String) and writes the time elapsed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Console

public Console()
Method Detail

getInstance

public static Console getInstance()

time

public void time(java.lang.String name)
Creates a new timer under the given name. Call timeEnd(String) with the same name to stop the timer and print the time elapsed.

Parameters:
name - The name of the timer.

timeEnd

public void timeEnd(java.lang.String name)
Stops a timer created by a call to time(String) and writes the time elapsed.

Parameters:
name - The name of the timer.

profile

public void profile(java.lang.String title)
Turns on the JavaScript profiler.

Parameters:
title - The text to be printed in the header of the profile report.

profileEnd

public void profileEnd()
Turns off the JavaScript profiler and prints its report.


count

public void count(java.lang.String title)
Writes the number of times that the line of code where count was called was executed.

Parameters:
title - The message printed in addition to the number of the count.


Copyright © 2004-2008 XWiki. All Rights Reserved.