Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,15 @@ const ProfileMetricsGraph = ({
yAxisLabel = 'CPU Cores';
yAxisUnit = '';
}
if (sampleType === 'cuda') {
if (sampleType === 'cuda' || sampleType === 'gpu_time') {
yAxisLabel = 'GPU Time';
}
if (sampleType === 'gpu_kernel_time') {
yAxisLabel = 'GPU Kernel Time';
}
if (sampleType === 'gpu_stall_time') {
yAxisLabel = 'GPU Stall Time';
}
}
if (sampleUnit === 'bytes') {
yAxisLabel = 'Bytes per Second';
Expand Down
12 changes: 12 additions & 0 deletions ui/packages/shared/profile/src/ProfileTypeSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ export const wellKnownProfiles: WellKnownProfiles = {
name: 'On-GPU',
help: 'Time spent on the GPU.',
},
'parca_agent:gpu_time:nanoseconds:gpu_time:nanoseconds:delta': {
name: 'On-GPU',
help: 'Time spent on the GPU. Combines kernel execution time and PC stall samples; the gpu_view label distinguishes the two views.',
},
'parca_agent:gpu_kernel_time:nanoseconds:gpu_kernel_time:nanoseconds:delta': {
name: 'On-GPU',
Comment thread
metalmatze marked this conversation as resolved.
help: 'GPU kernel execution time measured via CUDA runtime callbacks.',
},
'parca_agent:gpu_stall_time:nanoseconds:gpu_stall_time:nanoseconds:delta': {
name: 'GPU Stalls',
help: 'GPU stall time accumulated from PC sampling — shows where threads were waiting on the GPU.',
},
};

export function flexibleWellKnownProfileMatching(name: string): WellKnownProfile | undefined {
Expand Down
Loading