Bada learning-(22) tracking application performance

Source: Internet
Author: User

This article is translated from the Bada development website of Samsung.

Tracking Application Performance

You can create a special performance
Analyzer (Performance Analyzer) trace painting to achieve the purpose of application performance monitoring. With the help of tracing conversations, you can choose a monitor to track the performance of your application and store tracing results.

To use a Performance Analyzer to track the execution of your application, your application must be installed on the target terminal or emulator. You can runTarget
Device (
Terminal)Or the application on emulator to install it. The application will be automatically installed when it is run for the first time.

To create a new tracing session:

  1. Make sure that the simulator is running or a target terminal is connected to your computer, and the application you want to track is not running in the simulator or target terminal at the moment.
  2. To run the Performance Analyzer, go to the Windows Start Menu and selectPrograms> Bada SDK <version> Performance AnalyzerOr run the \ <bada_sdk_home> \ tools \ performanceanalyzer \ performanceanalyzer.exe executable file.
  3. ClickNew trace (New tracing)Button.
  4. InNew traceWindow to add the following trace details:
    • Name the trail name.
    • If necessary, enter a brief description for the trace, as needed.
    • Define the path to save the Tracing file, or use the default path \ <bada_sdk_home> \ tools \ ceceanalyzer \ workspace.
    • InAvailable monitors list, Select the monitor you want to use for tracking, and clickAdd. The selected monitor will be addedSelected monitorsList.

      Note:

      Available monitorsThe list is based on the configuration file (in the Performance Analyzer preference settings, clickPreferencesBy default, the file is in the \ <bada_sdk_home> \ tools \ performanceanalyzer \ monitors folder. IfAvailable
      Monitors
      The list is empty. Make sure that the preference is in progress.Monitor File LocationThe (Monitor file address) Property points to the correct location.

    • InGet list of installed applications from (obtain the list of installed applications from)Field, selectTarget Device(Target terminal) orEmulatorTo obtain the list of installed applications.

      If multiple applications are foundApplicationSelect an application from the drop-down list.

    • SelectStart trace immediately after closing this wizard(Start tracing immediately after the Wizard is closed) The Check button can automatically start tracing without clickingStart trace(Start tracing) button.
    • ClickFinish.

    Once tracing starts, tracing details will be displayed in the Performance AnalyzerViews (View.

To track the performance of your application:

  1. If you do not specify that the application you want to track is on the target terminal or simulator when creating a tracing session, clickGet App listClick and select the address from which to obtain the Application List.

    A list of installed applications obtained from the target terminal or simulator is displayed. Check whether the applications you want to track are displayed in the application drop-down list.

  2. To start tracing, clickStart traceButton.

    After the application starts running on the target terminal or simulator,Start trace(Start tracing) button will becomeStop traceButton. Any event that occurs when the application is running will be detected and their real-time tracking information will be displayed in different Performance Analyzer views.

  3. To stop the tracing application, clickStop traceClick the button or clickEndKey.

The performance details about your application generated during the tracing process are stored in the Tracing file. You can use the toolbar to manage your Tracing file. In the toolbar, select:

  • Open trace(Open tracing) to open an existing Tracing file.

    The trace file is generally named trace.

  • Save trace(Save tracing) saves a new Tracing file or any changes to the current Tracing file.

    The Tracing file will be saved to the address you selected when creating this tracing session, in a folder named according to your tracing session. when you save the Tracing file, any current options in the event view will be stored in the tracking file like the tracing information.

    Original English address:

    Http://developer.bada.com/help_2.0/topic/com.osp.documentation.help/html/dev_env/performance_analyzer_project.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.