{"repo":"uucidl/uu.spdr","free":true,"listed":false,"github":"https://github.com/uucidl/uu.spdr","clone":"git clone https://github.com/uucidl/uu.spdr.git","description":"Instrument your C/C++ programs with traces, see them in chrome://tracing","language":"C","stars":58,"topics":["performance","tracing","instrumentation","trace"],"license":"MIT","category":"analytics","readme_excerpt":"SPDR Allow you to instrument code with traces, for invasive profiling. Portable, and economical. Compatible with chrome://tracing - Linux, OSX Build Status: - Windows Build Status: Other similar implementations: - minitrace at https://github.com/hrydgard/minitrace Development Status Stable and maintained. Under development as needs arise. Description This library offers you a series of macros supported by a C-based implementation to introduce timed traces inside your code. They may be used to debug your program and its threads and overwise measure the performance of groups of operations. The library also reports its results into a JSON format compatible with the tracing user interface found in Google Chrome. These reports may be loaded inside chrome by going to chrome://tracing, which opens a dedicated interface for trace viewing. The implementation is inspired by chrome's tracing capabilities yet was entirely written independently. See: https://www.chromium.org/developers/how-tos/trace-event-profiling-tool Usage Include the src/spdr unit.c file for your platform to your build. Import spdr.h. Hopefully it is small and easy enough to understand. You will initialize the library first, with your own memory buffer, enable the tracing to happen, then dump the results to disk in order to import them in chrome:tracing. Check examples/ for some typical uses. Tracing With: This will trace the printf call and associate a textual argument to it. Argument keys, categories and names are m","default_branch":null,"files":null,"tree":[],"storefront":"/r/uucidl","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/uucidl/uu.spdr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}