diff options
author | Dan McCabe <zen3d.linux@gmail.com> | 2012-03-21 09:53:45 -0700 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2012-04-11 22:21:33 +0100 |
commit | 1c3ddde4d8cd6a1c57b48caa2bfc278fbbaeee5b (patch) | |
tree | 65a5d8a52dcf42500d270e505f1995d716290860 /gui/ui | |
parent | cbabe34c0bc4c5190f53c2b4e6991ad10ad36e44 (diff) |
Add trim support to qapitrace GUI app.
This patch adds support for trimming of traces via the qapitrace GUI.
We enhance the GUI by adding a Trim entry to the Trace menu. When the
user selects either a frame or a call, the "apitrace trim" command
will be invoked to trim all calls after the selected call or frame.
New trace files are created automatically and named according to the
last call number in the trimmed trace.
For example, if the original trace file is:
/path/foo.trace
and the trace is trimmed after call 1234, the name of the trimmed trace
file will be named:
/path/foo.1234.trim.trace
Upon trimming, the trimmed trace file will be loaded into qapitrace.
First, we enhance the Trace menu of the GUI app.
Next, we add a TrimProcess class. This is modelled on the TraceProcess
class, but takes into account differences and simplifications.
Next, we tie the TrimProcess class into the main window by accessing
that class and its members appropriately as well as tieing in message
communication with that class.
Finally, we add a reference to the source of TrimProcess to the make
system.
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
Diffstat (limited to 'gui/ui')
-rw-r--r-- | gui/ui/mainwindow.ui | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/ui/mainwindow.ui b/gui/ui/mainwindow.ui index 52cf49ed..cb60ad9f 100644 --- a/gui/ui/mainwindow.ui +++ b/gui/ui/mainwindow.ui @@ -76,6 +76,7 @@ <addaction name="actionStop"/> <addaction name="actionLookupState"/> <addaction name="actionShowThumbnails"/> + <addaction name="actionTrim"/> <addaction name="separator"/> <addaction name="actionOptions"/> </widget> @@ -537,6 +538,17 @@ <string>Ctrl+T</string> </property> </action> + <action name="actionTrim"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Tr&im</string> + </property> + <property name="shortcut"> + <string>Ctrl+I</string> + </property> + </action> <action name="actionOptions"> <property name="text"> <string>Options</string> |