Commit Graph

6070 Commits

Author SHA1 Message Date
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
Matthäus G. Chajdas cb84ff695e Add UUIDs to counter descriptors to allow uniquely identifiying them.
For built-in types, use a hard-coded GUID and just modify the last 32-bits; for the AMD counters, we just hash the description/name for now.
2017-08-24 13:21:05 +01:00
Matthäus G. Chajdas 72ef43b969 Add a new Uuid type to store unique identifiers. 2017-08-24 13:21:05 +01:00
Matthäus G. Chajdas b39844bb59 Hook up the counter capture and result display. 2017-08-24 13:21:04 +01:00
Matthäus G. Chajdas 03343239c7 Implement a Performance Counter Viewer pane, hook up selection dialog 2017-08-24 13:21:03 +01:00
Matthäus G. Chajdas 7d15d75638 Don't fetch AMD counters when no AMD counter is required. 2017-08-24 13:21:03 +01:00
Matthäus G. Chajdas ba4c9d6837 Prepare everything for the performance counter viewer window. 2017-08-24 13:21:02 +01:00
Matthäus G. Chajdas 29376f34cc Add a performance counter selection dialog. 2017-08-24 13:21:01 +01:00
baldurk 40a0272a3e Remove use of bool32 replay API type&optimise mem layout in some structs 2017-08-24 10:44:45 +01:00
baldurk e85c8d19bf Combine 'special' with 'specialFormat' as single resource format type
* There was no good reason to have a flag indicating if the special
  format was valid or not. Now it's a single enum, with a value
  'Regular' indicating that the compCount/compWidth/compType fully
  describe the format itself.
* This makes code patterns easier as you no longer need to check for
  special then check for specialFormat, you can just test the type
  directly.
2017-08-24 10:37:16 +01:00
baldurk b55ff14242 Use nested ResourceFormat in MeshFormat struct.
* The old C# interop didn't support this for structs going from the UI
  to the core module.
2017-08-21 18:14:44 +01:00
baldurk 1b88a39339 Optimise tree widget clearing and child adding by batching updates
* This takes a nice chunk of time off the pipeline state view in
  particular when changing between events.
2017-08-21 17:14:21 +01:00
baldurk 43ac48a493 Don't use event browser as area reference if it's not visible.
* Fixes a crash opening the API inspector if the event browser was
  closed.
2017-08-21 15:43:20 +01:00
baldurk a1369f05ba Change home vk layer path to use $XDG_DATA_HOME if present. Refs #723 2017-08-21 13:43:00 +01:00
baldurk 9b4ee72af6 Pass pipeline state around by reference instead of copying by value 2017-08-18 19:37:18 +01:00