This page will help you get started with using jsprofile.
The external javascript files will need to be hosted by a web server, as they are fetched with AJAX. If using Apache, configure DocumentRoot to be the parent directory of the directory containing jsprofile.js and this HTML file, and navigate to it via http://localhost/jsprofile/index.html. Alternatively, copy the jsprofile directory to somewhere under your htdocs.
The following demonstrates the simplest bare-bones usage of jsprofile with the bundled default profiler view. Start the profiler, click some of the other buttons, then Stop the profiler. Click Show Results to display the results in a tabular format. You can click the header cells of the table to change the sorting.
You can run the profiler programmatically too. View the source of this HTML page to see how the following example is implemented. The basic idea is to register an object implementing the profiler state update interface. This object runs the test when the profiler is finished initializing, and stops the profiler. It also manages the results of the profiler when it is stopped. In this example, a dump of the profile data results is displayed, as returned by the getProfileData() method of the Profiler object.
You might also want to try the functional tests: