In this simple example, the ProfilerViewer Control is used to profile an instance of the YUI Calendar Control. Interact with the calendar interface, then activate the ProfilerViewer to see the profile data. You can then continue to interact with the calendar, refreshing the data in the ProfilerViewer to update the profiling display.
In this example, we create an instance of YUI's Calendar Control, tell Profiler to profile our Calendar instance, and then use ProfilerViewer to experience that data.
This example has the following dependencies:
We begin with empty
div elements for Calendar and Profiler to use:
Finally, we set up ProfilerViewer to consume the profiling information and make it visible in the interface: