Use Performance Insights and Story Object Size to Analyze Your Story Performance

You can use Performance Insights in view mode, which provides statistics and recommendations based on the assets in your story for you to analyze and optimize your story performance. You can also use Analyze Object Size to calculate the size of objects in your story, so that you can choose to modify or remove objects if necessary.

Create Performance Insights

Performance Insights consists of Loading Sequence, Story Statistics, and Recommendations in respective tabs.

To enable Performance Insights, in edit mode, from Tools in the toolbar, select Start of the navigation pathPerformance Optimization Next navigation step Analyze Story Performance in View TimeEnd of the navigation path.

When your story finishes loading in view mode, select Performance Insights from the right of the toolbar. You can also select Performance Insights from Tools in the toolbar to open the tool.

Check Loading Sequence

In the Loading Sequence tab, you can check the sequence and time of different processes when your story was loading in a chart view.

The processes fall under the following three categories in different colors:
  • Local (blue): Local processes are run within the environment of the browser itself.

    • Update Persisted InA: Persisted InA is in the generation process because the cached one is unavailable.

    • Load resource file of custom widget <widget name>: Download a custom widget's resource file.

    • Prepare widgets query: Set up a query for widgets.

    • Load <widget type> <widget name>: Create a widget instance, including the time it takes to render the widget if data is available.

    • Render <widget type> <widget name>: Render or generate the representation of a widget with its associated data. However, if the data refresh is paused, the widget is illustrated without incorporating any data. If not, the widget waits for data to be ready to be rendered.

  • Remote (orange): Remote processes require interactions with servers outside of your local browser environment. They typically include operations requiring data retrieval from servers.

    • Query cube metadata: Seek information about a cube (multi-dimensional structure)’s metadata of a data model.

    • Query model metadata: Obtain information about a data model's metadata.

    • Query model metadata (cache validation): Check whether the cached data model's metadata is still valid. For example, when a chart's dimension, measure, or filter is changed, there's an extra round trip to fetch the model's metadata again.

    • Query dimension hierarchies, members, or member descriptions: Retrieve hierarchies, members, or member descriptions of a dimension.

    • Fetch widgets data from batch query: Retrieve data of multiple widgets with a batch query.

    • Query data of widget <widget name>: Retrieve data of a specific widget if it's not included in a batch query.

    • Load content library: Load the story definition.

    • Get server information: Establish a connection with a remote server and acquire a token.

  • Script (green): Script processes refer to the running of scripts in the browser, which bring dynamic interaction and manipulation with the story elements.

    • Run <ID.event> script: Run the script for specific APIs and event.

    • Wait for <widget name> to be rendered: Wait when a script requires a widget that hasn't been fully rendered.

    • Fetch description of members from dimension <dimension ID>: Obtain a description required for setDimensionFilter or similar APIs.

Each process is represented as a bar. When selecting a bar, you can find more details of the corresponding process, including duration, start time, and end time.

In addition, you can find the timeline of the following four stages during the story loading, marked as distinct points:
  1. Loading screen appeared.

  2. Loading screen disappeared.

    Loading screen refers to screen with Loading your story before your story appears.

  3. Initial viewport loading completed.: All widgets initially in the viewport have been rendered.

  4. (For stories with scripts) On initialization scripts completed.: Scripts that are run upon story initialization have been completed.

Check Story Statistics

In the Story Statistics tab, you can check the existing story settings, query settings, widget details, and so on and copy the story statistics to your clipboard.

The following statistics are available:
  • Story settings, including loading optimization and auto refresh settings

  • Query settings

  • Number of widgets per page

  • Widget details:

    • Name

    • Type

    • Visibility Setting

    • Rendering Phase: Whether the widget was rendered in the story initialization phase, or background after initialization. The inclusion of queried data of a widget depends on its setting. For example, a chart whose data refresh is paused doesn't yet include data.

Check Performance Optimization Recommendations

In the Recommendations tab, you can find performance optimization recommendations based on your story context.

The recommendations are at widget, page and story levels, classified into Medium Impact and High Impact. Here are some general scenarios for recommendations:
  • The query loads for a long time.

  • The script runs for a long time.

  • Loading optimization settings is set to None.

  • Filter, variable, or page URL parameter is used.

  • Variables are set on story initialization.

  • The setDimensionFilter API is used with only a member ID.

  • The getMembers API is used when the data volume is large.

  • There are a large number of widgets on the page.

  • There are a large number of pages.

  • The story size is too large.

  • The image is too large.

  • The initial drill level is large.

  • The result set is large.

  • There are exception aggregation dimensions.

You can expand each issue for more details. With the recommendations, you can detect the performance issues in your story and take actions to optimize your story performance.

Analyze Object Size

Context

The Story Object Size tab shows you the memory usage of the objects in your story. It displays the total story size and compares it to the allowed limit. All pages are listed with their individual size and percentage share. Widget-specific data is displayed, including size, percentage, and type. The panel also allows you to navigate directly to any widget on the page using the Action column.

Procedure

  1. Make sure your story is in Edit mode.
  2. You can run an object size analysis in one of two ways:
    • Open the Info Panel in the toolbar, select the Story Object Size tab, and select Analyze if you haven't run the analysis before, or Analyze again to rerun the analysis.

    • In advanced mode, from Tools in the toolbar, select Start of the navigation pathPerformance Optimization Next navigation step Analyze Object SizeEnd of the navigation path.

    When the analysis is complete, the Story Object Size tab will be loaded with a list of objects in your story arranged by size. The size shown is the serialized size of the story definition (structure, widgets, scripts, layout, etc.), and does not include the underlying model data. The story size is broken down into Widgets and Others, where Others refers to non-widget story objects, including variables, global scripts, theme definitions, story-level constructs, configuration flags, and other story metadata required for your story.
  3. (Optional) If you select Size (MB), you can change the sort to Ascending or Descending.
  4. (Optional) Select Settings to switch the object list from Tree View (default) to List View. In Tree View you can also choose to Expand All (default) or Collapse All nodes.
  5. To review or modify an object, in the Story Object Size tab, select (Open Object) in the Action column.
    The object is selected in the story, and the builder panel opens. You can make changes to the object in the story if needed.