Skip to content

Commit

Permalink
UI: Initial support for saving and loading a debug session
Browse files Browse the repository at this point in the history
* This saves a json document which links the initial trace file to a set of snapshots
* Edited / outdated / valid properties are stored with each snapshot so that the snapshot indicator in the UI can be restored properly.
* All 'rel_path' properties are relative to the location of the session file. This allows the trace file, session file, and session data folder be moved to a new location and still be loaded. Only relative paths are currently supported.

Future goals:
* Ideally, any state of the UI should be included in the session so that active tabs / drop-down selections / texture zoom settings / etc are restored when the session is loaded.
* Indications of which shaders are edited should also be included (after the UI itself supports indicators of these changes)
* The original trace file should NOT be changed when the initial snapshot is edited or if/when we support the insertion and removal of API calls, so any changes to the API calls should be stored in this session file as well.

(cherry picked from commit 8ede72592ca94d754442e3f097ba03b546047ab1)
  • Loading branch information
Peter Lohrmann authored and cworth-gh committed Apr 1, 2014
1 parent c7738c0 commit cd54134
Show file tree
Hide file tree
Showing 5 changed files with 522 additions and 5 deletions.
Loading

0 comments on commit cd54134

Please sign in to comment.