baldurk
eb787f9a5f
Add unit tests for custom printf
2017-08-29 13:19:51 +01:00
baldurk
6e19b57d85
Add unit tests for string_utils.cpp
2017-08-29 13:19:50 +01:00
baldurk
cbbc779056
If the precision is lower than even the number after rounding, print 0.0
2017-08-29 13:19:49 +01:00
baldurk
c8a160877f
If the precision is 0 for strings, don't print anything
2017-08-29 13:19:49 +01:00
baldurk
56e1d6a527
Unsigned integer types don't ever have a prepended space or +
2017-08-29 13:19:48 +01:00
baldurk
ed0c5650af
Print the right sign on infinities
2017-08-29 13:19:47 +01:00
baldurk
8739c39f08
Don't write a NULL terminator at the end of the buffer
...
* Note: we do write a NULL terminator after the data (even if it's
truncated) we just don't want to write it at the end of the buffer too
2017-08-29 13:19:46 +01:00
baldurk
9f1e830b50
Don't use uppercase 0X for alternate form hex printing
2017-08-29 13:19:46 +01:00
baldurk
a6e2e9fea5
Support signed size_t sized objects in custom printf
2017-08-29 13:19:45 +01:00
baldurk
bbf1c60859
Don't add separator after last element in merge()
2017-08-29 13:19:44 +01:00
baldurk
eb15c43b41
Add Catch.hpp for unit testing, with appveyor hooks
2017-08-29 13:19:44 +01:00
baldurk
af9b74ff48
cmdline.h: don't complain about unrecognised short options in the 'rest'
2017-08-28 18:50:20 +01:00
baldurk
d4488ff690
Re-use parent console if it's available
...
* This means we won't get an ugly console window popping up when running
renderdoccmd on windows, but if we run it from a terminal then we'll
get output as normal.
* One downside is that cmd.exe seems to snoop the exe type (GUI or
console) and if it's a GUI application it returns to the prompt
immediately. bash for example though waits for process termination.
* The other is that pipe redirects to file don't work properly.
2017-08-28 18:50:19 +01:00
baldurk
24518e086c
Set basevertex to 0 when calculating column data width
2017-08-28 18:50:18 +01:00
baldurk
d68f00ca72
Reset hover index when widget is cleared, don't leave it to be stale
2017-08-28 18:50:18 +01:00
baldurk
00e06d8ff1
Make display rendering colours theme-aware.
...
* In particular this removes hard-coded checkerboard colours that don't
look right on dark themes.
2017-08-28 18:50:17 +01:00
baldurk
f295df15f4
Add missing override specifier
2017-08-24 22:38:16 +01:00
baldurk
d12aa5196c
Don't use uint8_t compCount to store GL enum that might be GL_BGRA
2017-08-24 21:04:46 +01:00
baldurk
2a0fac1ad6
Compile fixes on linux
2017-08-24 19:15:28 +01:00
baldurk
9fabf709ff
Add checkboxes for counter groups to allow enable/disabling in batch
2017-08-24 17:26:41 +01:00
baldurk
c0065a7e58
Add support for indeterminate checkboxes in custom style
2017-08-24 17:25:47 +01:00
baldurk
c7265b1825
Allow sorting and moving columns in counter results.
...
* We do a custom sort so that it's always in the right order even if
the data isn't formatted exactly as a number.
2017-08-24 16:33:42 +01:00
baldurk
b10a8ab0a5
Tweak spacing/margins a bit
2017-08-24 16:33:41 +01:00
baldurk
371b3b3174
Change to RDTreeWidget and add context menu with expand/collapse all
2017-08-24 16:33:41 +01:00
baldurk
38fcc87943
Add custom RDStyle rendering of view item checkmark indicators
2017-08-24 16:33:40 +01:00
baldurk
5619ed66b4
Fix RDTreeWidget to allow for checkable items
2017-08-24 16:33:39 +01:00
baldurk
81ec99b58a
Don't crash in data() if no data has ever been set. Allow adding columns
2017-08-24 16:04:26 +01:00
baldurk
c0b123c575
Add itemChanged signal for RDTreeWidget
2017-08-24 16:03:49 +01:00
baldurk
1f13a1466e
Add RDTreeWidgetItemIterator for depth-first forward-only iteration
2017-08-24 16:03:01 +01:00
baldurk
9cf53473b2
Extract plugin locating logic out of AMD ISA and reuse for counters
2017-08-24 15:00:12 +01:00
baldurk
760c04844a
Add CSV export button to counter viewer
2017-08-24 15:00:12 +01:00
baldurk
9c4aa3a50a
Bind to clicked not pressed (clicked fires too early, before mouseup)
2017-08-24 15:00:11 +01:00
baldurk
e2be87cd0f
Remove extra frame border around counter viewer
2017-08-24 15:00:10 +01:00
baldurk
5fdf959077
Double clicking on the selected counter will reveal it in the tree
2017-08-24 15:00:10 +01:00
baldurk
0ea91f2861
Change counter description on selection, not on hover
2017-08-24 15:00:09 +01:00
baldurk
ace9bed79b
Pass selected counters back into selection dialog
...
* This means that each time you open the dialog you don't start with an
empty set, instead you start with the set of counters you had
previously selected.
2017-08-24 15:00:09 +01:00
baldurk
1085c23d4f
Don't highlight sections in horizontal header on counter viewer
2017-08-24 15:00:08 +01:00
baldurk
e20b42ee82
Convert counters that are in kb or ms into normalised units
2017-08-24 15:00:07 +01:00
baldurk
533a7be348
Use Formatter for float-formatting preferences
2017-08-24 15:00:07 +01:00
baldurk
e18d5349ce
Connect up cancel button in counter selection dialog
2017-08-24 15:00:06 +01:00
baldurk
3650f36cbf
Use time unit configured for event browser (currently) for time values
2017-08-24 15:00:06 +01:00
baldurk
15ecaf167c
Select rows at once in perf viewer, and add copy-paste handler
2017-08-24 15:00:05 +01:00
baldurk
43a4cb5818
Disabling edit triggers on results view, add double click to jump to EID
2017-08-24 15:00:04 +01:00
baldurk
74950614a2
Use Title Case for performance counter viewer window title
2017-08-24 15:00:04 +01:00
baldurk
ca04122d64
Resize columns to fit contents after setting the values
2017-08-24 15:00:03 +01:00
baldurk
bf060cfa24
Use spacer to left-align capture counters button
2017-08-24 15:00:02 +01:00
baldurk
9c948173c2
Recognise and add counter viewer as builtin window
...
* This means it's included in layouts when saved/restored
2017-08-24 15:00:02 +01:00
baldurk
42435df93a
Don't allow timing while no capture is loaded
2017-08-24 15:00:01 +01:00
Matthäus G. Chajdas
8478bfbb52
Address review feedback.
2017-08-24 13:39:11 +01:00
Matthäus G. Chajdas
4d25394c0b
Implement loading/saving in the performance counter selection.
2017-08-24 13:21:06 +01:00