https://github.com/geod24/tracyd
About A small wrapper around Tracy profiler for the D programming language
https://github.com/geod24/tracyd
Last synced: 5 months ago
JSON representation
About A small wrapper around Tracy profiler for the D programming language
- Host: GitHub
- URL: https://github.com/geod24/tracyd
- Owner: Geod24
- License: mit
- Created: 2023-08-29T10:41:37.000Z (almost 3 years ago)
- Default Branch: v0.x.x
- Last Pushed: 2023-10-02T23:14:33.000Z (over 2 years ago)
- Last Synced: 2025-01-30T03:42:42.249Z (over 1 year ago)
- Language: D
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tracy for D
This is a small wrapper around [Tracy](https://github.com/wolfpld/tracy) profiler
for the D programming language.
## Documentation
[Documentation](https://github.com/wolfpld/tracy/releases/latest/download/tracy.pdf) for usage and build
instructions of the Tracy. TracyD does not come with special documentation.
## Profiling a program execution
Just import `tracyd` module, run the program and open Tracy. Only CPU is profiled by default.
```D
import tracyd;
void main ()
{
// Your code
}
```
### Integrating into your build system
Using Tracy requires building the C++ library.
It is recommended to use either a git submodule or a copy of Tracy in your application.
Provided you have done so, you would need to call the `Makefile` (or replicate it)
to build Tracy, and add the resulting object file to your `sourceFiles`.
A future version will make this step easier.
### Profiling the memory
TracyD includes a modified version of Druntime's conservative GC to trace memory allocations. Memory allocations can be traced when the linked program is executed
with the `--DRT-gcopt="gc:tracking-conservative"` parameter.
```Bash
$ ./program --DRT-gcopt="gc:tracking-conservative"