Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Jan 11, 2024
1 parent a1637c4 commit c6f1337
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ NVTX.@annotate function myfunction(args...)
end
```

## Instrumenting Julia garbage collector
## Instrumenting Julia internals

Additionally, it is possible to annotate the Julia garbage collector by calling [`NVTX.enable_gc_hooks()`](@ref) and [`NVTX.enable_inference_hook()`](@ref), or setting the `JULIA_NVTX_CALLBACKS` environment variable.
Additionally, it is possible to annotate the Julia garbage collector and inference by calling [`NVTX.enable_gc_hooks()`](@ref) and [`NVTX.enable_inference_hook()`](@ref), or setting the `JULIA_NVTX_CALLBACKS` environment variable to a comma (`,`) or bar (`|`) separated list of:

- `gc`: instrument the Julia garbage collector
- `alloc`: instrument calls to alloc
- `free`: instrument calls to free
- `inference`: instrument calls to compiler inference.

## Running the profiler

Expand Down

0 comments on commit c6f1337

Please sign in to comment.