When mBProfiler executes local profiling it takes an application's main file and runs it on a local JVM. More specifically, the Profiler Frontend, the Profiler Agent and the profiled application will be started at the same host. You can profile locally Java Applications, JUnit tests, JUnit Plug-in tests, Eclipse applications and an OSGi framework.
Prerequisite: Setup an Eclipse JRE that is supported by mBProfiler.
To locally profile an application, use one of the next approaches.
Directly from the Package Explorer
You can directly start an application in profiling mode from the Package Explorer – use the Profile As > <application_type> option where <application_type> could be Java Application, JUnit Test, JUnit Plug-in Test, Eclipse Application or OSGi Framework:
As a result, the application will be started in profiling mode based on the settings in a profile launch configuration named after the file/project name. You can preliminary create such a configuration in the Profile Configurations dialog (Run > Profile Configurations) and pre-configure the runtime and profiling settings. Otherwise, such a launch configuration will be automatically created and populated with default settings.
Once the profiling is launched, you can control its execution from the Profile view.
From the Profile Configurations Dialog
You can start the application in profiling mode by creating a special profile launch configuration and there providing settings for the profiling process.
Once the settings are saved to a launch configuration, you can quickly start profiling by selecting the configuration directly from the
button pull-down menu or from the Run > Profile History sub-menu.
Once the profiling is launched, you can control its execution from the Profile view.