The Profiler view shares the same pane as the Output Streams, Input Streams, and Variables views in Studio's SB Test/Debug perspective. The default placement is the lower left corner of the perspective.
The statistics shown in the Profiler view are the same as the operator statistics shown by the sbprofile command-line utility. (However, the Profiler view does not show statistics for queues.) See Meanings of the Profiling Statistics Collected and Meaning of the Operator Size Field for the meanings of the statistics in the Profiler view's columns. See the Profiling page for a general overview of StreamBase profiling.
To see profiling statistics with the Profiler view, use the following steps:
-
Prepare a feed simulation for the application you wish to test, or verify that the default feed simulation produces meaningful results for your application. As an alternative, prepare to connect your running application to a live data feed.
-
Run the application normally in Studio's SB Authoring perspective.
-
When Studio switches to the SB Test/Debug perspective, start a feed simulation or send live data by enqueuing to your application's input ports from the command prompt. To obtain useful profiling statistics, send the feed simulation or live data at the real-world data rates. Let the data feed run for several minutes.
-
Click the Profiler view tab to bring that tab to the foreground.
-
Click the
button. -
In the Profiler view, watch statistics for each of your application's operators accumulate in the Profiler view.
-
To stop profiling, click the
button.
Note
The profiling system shows meaningful statistics only for operators that have run for a while. It is common to have StreamBase applications with operators that use no measurable amount of CPU time when the application has not run very long or has not run with much data. For low latency applications running on fast CPUs, it could take hundreds of thousands of tuples to register statistics greater than zero.
Click a column name in the Profiler view to sort the display by that column; an up or down arrowhead in the column shows the direction of the sort. Click again to sort in reverse order. Click a third time to remove all sorting and restore the default view.
Use the default
. Use this button to distinguish operators when you
are running with more than one container.
Use the Include operators with zero time button () to show all operators, whether or not they have yet accumulated any CPU time in the current run of your application.
Note
Remember that StreamBase Studio was designed as a development environment, and is not configured or intended for benchmarking. Always make decisions about your application's performance based on running it with the epadmin command, not when running it in Studio. See Studio Performance Note.