Overview# Function Decorator and Context Manager Annotation Types Markers Ranges Counters Annotation Attributes Counters Scalar Counters Counter Groups Avoiding Copies Counter Semantics Batched Samples No-Value Samples Best practices Give, don’t take Isolate NVTX annotations in a library using a domain Use categories to organize annotations Reduce cache lookups and object allocations Use payload for large data, don’t embed data in messages Use counter annotations for values that change over time Pass data in its native form Automatic function annotation Command-line interface The Profile class