2.6.3 Capture a web-based application

This method involves loading the Graphics Analyzer interceptor into the Web Application Manager (WAM), which is the process responsible for displaying a web-based application.

The steps are as follows:

  1. Open /etc/init/WebAppMgr.conf
  2. Near the end of this file is a line beginning exec $WEBOS_NICE $WAM_EXE_PATH … that loads WAM. Immediately before this line, insert the following line to include the Graphics Analyzer interceptor into the environment:
    export LD_PRELOAD=/usr/lib/libcbe.so:/opt/graphics_analyzer/libinterceptor.so:$LD_PRELOAD
  3. Reboot or turn on the device.
  4. Open the Graphics Analyzer host GUI application on your workstation.
  5. Connect to the device using the Graphics Analyzer Device Manager. The device appears under Linux Devices and can be chosen with a single click.
  6. Start the web-based application.
  7. The function calls are captured in the Graphics Analyzer host GUI. Other applications may be captured at the same time, because many applications in webOS are web-based.

Caution:

Here and elsewhere, libcbe.so (Google Chrome) must be placed in LD_PRELOAD before libinterceptor.so. If you do not do this, web-based applications hang.

For an example web-based application, see the app store, /mnt/otncabi/usr/palm/applications/com.webos.app.discovery

Non-Confidential - RELPDF file icon PDF version101545__00_en
Copyright © 2020–2022, 2024 Arm Limited or its affiliates. All rights reserved.