<div dir="ltr">Hi Alex,<div><br></div><div>Sorry for the delay. James Benton wrote the Qt graph display for profiling. I was hoping he could comment, but forgot to star this ended up forgetting to reply myself.</div><div><br></div><div>I didn't look at the code, but from what I can see from the screenshots it looks great and I'm happy to get it commited.</div><div><br></div><div>Requiring Qt 5.3 is not an issue. Visual Studio 2015 requires Qt 5.6 anyway.</div><div><br></div><div>Generally, I'd prefer to avoid depending on OpenGL, to avoid hitting issues when debugging OpenGL drivers. But profiling view is OK -- were not searhcing for bugs when using it. And there's always the possibility of falling back to llvmpipe for qapitrace. Do you know if it works reasonably well with llvmpipe?</div><div><br></div><div>Jose</div><div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 11:02 PM, Alex Tru <span dir="ltr"><<a href="mailto:alxtry@gmail.com" target="_blank">alxtry@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I’m developing a new OpenGL profiling view for QApitrace. I’m pursuing<br>
several goals with that:<br>
<br>
1) Support new profiling counters. Currently we have only CPU/GPU<br>
time histograms in the view. Last year, I contributed an abstraction<br>
for different OpenGL profiling backends which got merged, I’ve also<br>
added support for both the INTEL_perfquery and AMD_perfmon GL<br>
extensions. This allowed us to output CSV files containing the<br>
performance counters’ metrics when replaying traces with glretrace.<br>
The plan for this year’s project is to integrate it in QApitrace to<br>
make it easier to use and visualize the data.<br>
2) Since I’m planning to display a lot of data in the view,<br>
there’s a need to provide graphing tools with reasonable performance.<br>
I’ve chosen to use a combination of raw OpenGL and QML for that. The<br>
performance is better than that of QPainter based, especially for<br>
large amounts of data (but it still can be laggy on some HW).<br>
3) Improve user experience. Well, currently I haven’t improved a<br>
lot (if not anything). But I would like to collect opinions on this<br>
topic.<br>
<br>
My development tree is here: <a href="https://github.com/trtt/apitrace/tree/guiwip2" rel="noreferrer" target="_blank">https://github.com/trtt/apitra<wbr>ce/tree/guiwip2</a><br>
I had to increase requirements up to Qt 5.3 and OpenGL 3.2. Do you<br>
think this is acceptable?<br>
<br>
Here are some screenshots, just in case:<br>
<a href="https://www.dropbox.com/sh/wntm6hk6fyhsr8j/AAANIoCyni1XqGez78K8Wo01a?dl=0" rel="noreferrer" target="_blank">https://www.dropbox.com/sh/wnt<wbr>m6hk6fyhsr8j/AAANIoCyni1XqGez7<wbr>8K8Wo01a?dl=0</a><br>
<br>
It’s in a quite early state at the moment, but you can generally<br>
estimate what to expect. Compiling glretrace and qapitrace should be<br>
enough. New profiling view can be found in the menu (Trace -> Profile<br>
with backends). Old metrics are all available, new ones are most<br>
likely to be found on Mesa for Intel gen 5-8 and for some in Nouveau,<br>
also proprietary AMD drivers can feature some. You can expect to see<br>
timelines and plots for metrics chosen for different shader programs.<br>
Controls are a bit awkward now, but you can drag view to scroll and<br>
use <Ctrl+Wheel> to zoom.<br>
<br>
I am basically writing to know:<br>
1) Do you think this new profiling view can find its place in QApitrace?<br>
2) If yes, what features would you like to see in it?<br>
<br>
If you are interested, you can also check out my TODO list:<br>
<a href="https://trello.com/b/EY0CAw0b/prof-gui-apitrace" rel="noreferrer" target="_blank">https://trello.com/b/EY0CAw0b/<wbr>prof-gui-apitrace</a><br>
______________________________<wbr>_________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org" target="_blank">apitrace@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/apitrace" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/apitrace</a><br>
</blockquote></div><br></div></div></div>