What's next for CxxProfiler

Mārtiņš Možeiko Nov. 7, 2016, 6:55 a.m.
While CxxProfiler is pretty functional already now, there are few improvements I've been working on.

Main change would be using ETW API for sampling call-stacks. It would allow much higher frequency and lower overhead than current mechanism. On Windows 10 it allows to sample stack every 0.122 ms (1/8192). I still want to keep current sampling mechanism (basically a debugger) because it can be useful in various situations - for example, if you need to run profiler it as non-admin user. So to do all this I'm refactoring non-UI code, so I can have two backends in code. I'm cleaning up backend code (original one was written ~9 years ago) and making it more handmade-like, that means controlling memory allocations, and not relying on Qt. At the same time I'm separating common functionality for two backends - symbol lookup, string caching, communication with UI process. Now debugger backend looks pretty nice and clean (check out backend_debugger.c file). Profiler will now launch backend in separate process and communicate data back to UI process over pipe. I decided running backend into separate process because ETW will require admin rights, but UI process doesn't need to be running with admin privileges. Also it provides a bit of safety, in case backend will crash, the UI will be still alive and will be able to display partially received data.

You can follow latest changes in branch "next" on github: https://github.com/mmozeiko/CxxProfiler/commits/next
1 comments

v2 released - bugfix & small improvements

Mārtiņš Možeiko Aug. 28, 2016, 1:54 a.m.
This release contains bugfix and has few improvements for VS CRT source location.
  • Fixed potential crash when using links in source view
  • Better support for VS CRT source detection (added VS2015 and Universal CRT)
  • Upgraded Qt to 5.7.0
Download on github: https://github.com/mmozeiko/CxxProfiler/releases/tag/v2
Download on HMN git: https://git.handmade.network/mmozeiko/CxxProfiler/tags/v2
0 comments

CxxProfiler license

C Mārtiņš Možeiko July 17, 2016, 7:09 p.m.
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to http://unlicense.org
0 comments