Memory Session view

The Session view lets you manage your memory analysis sessions, which keep historical data. Session elements allow you to quickly filter data by this element, for example by file or by tid. Double-clicking a session opens the Memory Analysis editor for this session.

Screen showing the Session View.

The view lists all of the memory analysis sessions that you've created in your workspace while running programs with the Memory Analysis tool active. Each session is identified by a name, date stamp, and an icon that indicates its current state.

The icons indicate:

The Connected icon
This memory analysis session is open and can be viewed in the Memory Analysis editor.
The Disconnected icon
This session is closed and cannot currently be viewed.
The Running icon
This session is still running on the target; you can select the session and view its incoming traces. You can change settings dynamically also and run leak detection or dump memory usage statistics from the Momentics IDE for BlackBerry.
The Indexing icon
The traces and events are being indexed. This icon appears only if you stop the memory analysis session or your process terminates. If your process terminates, the running icon may still be shown while the database is registering the events and traces; when this is done, the indexing icon appears. Wait until indexing is finished, or the information might be incomplete.
Right-clicking on an open session (The Connected icon) shows a menu with several options:
  • View
  • Close
  • Delete
  • Rename...
  • Properties...
  • Import...
  • Export...
Right-clicking on a closed session (The Disconnected icon) shows a menu with several options:
  • Open
  • Delete
  • Rename...
  • Properties...
  • Import...
  • Export...

Open a session

Memory Analysis sessions must be open before they can be viewed in the Memory Analysis editor (open session is loaded in memory).
To open to a session:
  1. Right-click the session in the Session view.
  2. Choose Open from the context menu.

After a moment, the session is opened ([Opened]).

Delete a session

To delete a session:

  1. Do one of the following:
    • Right-click the session in the Session view
    • Select several sessions in the Session view, then right-click.
  2. Choose Delete from the context menu.
The Momentics IDE deletes the memory analysis session(s).

Close a session

To close a session and recover the resources, it uses while opened:

  1. Right-click the session in the Session view.
  2. Choose Close from the context menu.
After a moment, the session is closed(The Closed icon).

Export session data

You use the Export command to export your session information from a Memory Analysis session view. When exporting memory analysis information, the Momentics IDE lets you export the event-specific results in .csv format, or all session trace data in .xml format. Later, you can import the event-specific results into a spreadsheet, or you can choose to import the other session data into a Memory Analysis session view.

For more information about exporting session information in CSV or XML format, see Import and export memory analysis data.

Filter session information

Occasionally, there may be too much information in a Memory Analysis session, and you might want to filter some of this information to narrow down your search for memory errors, events, and traces.
To filter out Memory Analysis session information:
  1. Expand your Memory Analysis session in the session view.
  2. Select specific session components, such as a library, thread, or both, that you want to filter on. You can double-click any of the session components to open a corresponding Memory Analysis Allocations pane containing memory events and traces that belong to the selected component.

Import session information

You can import session data from a Memory Analysis session view. When importing memory analysis session information, the Momentics IDE lets you import results from a memory analysis trace file in .rmat format, or a previously exported session in .xml format. You can use this import after you've logged trace events to a file on the target system, and copy the file to your host system.

For more information about importing memory analysis event data or XML data see Import memory analysis data.

Show session information

To view information about a session:
  1. Right-click the session in the Session view.
  2. Choose Properties from the context menu.

The Momentics IDE shows a Properties dialog for that memory analysis session:

Screen showing memory analysis session properties.

Rename a session

To rename a memory analysis session:
  1. Right-click the session in the Session view.
  2. Choose Rename from the pop-up menu.

    The Momentics IDE shows the Rename Session dialog.

    Screen showing the Rename Session dialog box.

  3. Enter a new name for the session, then click OK to change the session's name.

Last modified: 2015-03-31



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus