Skip to main content

NsysQueryError

Enum NsysQueryError 

Source
pub enum NsysQueryError {
Show 104 variants InternalUnsupportedKind { verb: &'static str, kind: &'static str, }, InternalSqlKindTagInvalid { verb: &'static str, kind: String, }, InternalNvtxAttributionUnsupportedKind { verb: &'static str, kind: &'static str, }, InternalStatsRowMissing { query: &'static str, }, InternalNcuCommandLaunchRecipeSelectionMissing { selector: &'static str, }, InternalNcuCommandSqlRowMissing { query: &'static str, }, InternalSliceBuilderMissing { row_id: i64, }, NvtxReverseSidecarLoad { mode: &'static str, source: Box<NsysDataError>, }, TraceOpen { source: Box<NsysDataError>, }, CorrelationIndexLoad { source: Box<NsysDataError>, }, HardwareExtract { source: Box<NsysDataError>, }, TimeWindowResolve { source: Box<NsysDataError>, }, Data { source: Box<NsysDataError>, }, SummaryMetaLoad { source: Box<NsysDataError>, }, NvtxParentSidecarEnsure { source: Box<NsysDataError>, }, NvtxNestingLoad { source: Box<NsysDataError>, }, NvtxTreeLoad { source: Box<NsysDataError>, }, Sql { area: &'static str, phase: SqlPhase, label: String, source: Error, }, LimitTooSmall { limit: usize, }, PositiveDurationInvalid { flag: String, value: String, source: TimeParseError, }, PositiveDurationTooSmall { flag: String, ns: i64, }, NameFilterConflict, SearchCpuSampleUnsupported, SearchSortInvalid { source: SortParseError, }, TimelineIntervalInvalid { value: String, source: TimeParseError, }, TimelineIntervalTooSmall { interval_ns: i64, }, TimelineKindNotAllowed { kind: &'static str, }, VizTimelineWindowRequired, VizTimelineUnknownTrackKind { kind: String, }, VizTimelineInvalidSelector { selector: String, }, VizTimelineUnknownSelector { kind: String, selector: String, }, VizTimelineSelectorNonNegativeInt { selector: String, }, VizTimelineSelectorPositiveInt { selector: String, }, VizTimelineHighlightTopRequired, VizTimelineUnknownHighlightScope { scope: String, }, VizTimelineUnknownHighlightMetric { metric: String, }, VizTimelineCudaStreamDeviceRequired, VizTimelineCudaStreamStreamRequired, VizTimelineCudaStreamDeviceAll, VizTimelineArtifact { source: VisualizationError, }, SlicesUnknownGroupBy { group_by: String, }, SlicesSortInvalid { source: SortParseError, }, SlicesPrereqTableMissing { table: &'static str, }, SlicesGpuEventTableMissing, NvtxAttributionPrereqTableMissing { table: &'static str, }, NvtxAttributionNoAttributableTableMatch, NvtxAttributionContextInfoMissing, GraphReplaysNvtxPrereqTableMissing { table: &'static str, }, GraphReplaysSortInvalid { source: SortParseError, }, StatsGroupByNameAxisConflict { previous: &'static str, current: &'static str, }, StatsGroupByUnknownToken { token: String, }, StatsKindNotAllowed { kind: &'static str, }, StatsGroupByLocationAxisConflict { kinds: String, }, StatsGroupByDeviceParentRequired { verb: &'static str, axis: &'static str, }, StatsGridBlockKindConflict { kind: &'static str, }, StatsSortInvalid { source: SortParseError, }, StatsBySizeKindNotAllowed { kind: &'static str, }, StatsBySizeGroupByUnsupported { axes: String, }, StatsBySizeSortInvalid { source: SortParseError, }, StatsNvtxHierarchyAxesConflict, StatsNvtxHierarchyGraphAxisConflict { axis_name: &'static str, }, StatsNvtxHierarchySelfAttribute { axis_name: &'static str, }, StatsNvtxHierarchyPrereqTableMissing { axis_name: &'static str, table: &'static str, }, StatsNvtxHierarchyContextInfoMissing { axis_name: &'static str, }, NcuCommandUnknownEnv { env: String, }, NcuCommandRowIdKind { row_id: String, }, NcuCommandKernelTableMissing, NcuCommandMetadataTableMissing, NcuCommandKernelNotFound { row_id: String, }, NcuCommandKernelNameMissing { row_id: String, }, NcuCommandLaunchRecipeMissing, NcuCommandAmbiguousProcessRecipe { process: String, }, NcuCommandAmbiguousLaunchRecipe, KindLocationFilterConflict { verb: String, axes: &'static str, kinds: String, }, KindNvtxAttributionUnsupported { verb: String, kinds: String, }, GapsInvalidScope { scope: String, }, GapsMinDurationInvalid { value: String, source: TimeParseError, }, GapsMinTooSmall { min_ns: i64, }, GapsStreamRequiresStreamScope { scope: &'static str, }, GapsDeviceInTraceScope { device: i32, }, GapsSortStreamRequiresStreamScope { scope: &'static str, }, GapsSortDeviceInTraceScope, GapsSortInvalid { source: SortParseError, }, MetricsSortWithBucket, MetricsBucketTooSmall { bucket_ns: i64, }, MetricsSortInvalid { source: SortParseError, }, MetricsUnknownSource { metric_source: String, }, MetricsGpuTableMissing, MetricsGpuDictionaryMissing, MetricsGpuCounterNoMatch { glob: String, }, MetricsNicTableMissing, MetricsNicDictionaryMissing, MetricsNicIdMapMissing, MetricsNicInfoMissing, MetricsNicCounterNoMatch { glob: String, }, MetricsCpuSamplingCompositeEventsMissing, MetricsCpuSamplingUnknownGroupBy { axis: String, }, MetricsCpuSamplingCallchainsMissing { group_by: &'static str, }, MetricsCpuSamplingBucketCallchainsMissing { group_by: &'static str, }, MetricsCpuSamplingStackBucketUnsupported, MetricsCpuSamplingNameOnNumericAxis { group_by: &'static str, }, MetricsCpuSchedEventsMissing, MetricsCpuSchedUnknownGroupBy { axis: String, }, GraphReplaysTopNodesTooSmall,
}

Variants§

§

InternalUnsupportedKind

Fields

§verb: &'static str
§kind: &'static str
§

InternalSqlKindTagInvalid

Fields

§verb: &'static str
§kind: String
§

InternalNvtxAttributionUnsupportedKind

Fields

§verb: &'static str
§kind: &'static str
§

InternalStatsRowMissing

Fields

§query: &'static str
§

InternalNcuCommandLaunchRecipeSelectionMissing

Fields

§selector: &'static str
§

InternalNcuCommandSqlRowMissing

Fields

§query: &'static str
§

InternalSliceBuilderMissing

Fields

§row_id: i64
§

NvtxReverseSidecarLoad

Fields

§mode: &'static str
§

TraceOpen

Fields

§

CorrelationIndexLoad

Fields

§

HardwareExtract

Fields

§

TimeWindowResolve

Fields

§

Data

Fields

§

SummaryMetaLoad

Fields

§

NvtxParentSidecarEnsure

Fields

§

NvtxNestingLoad

Fields

§

NvtxTreeLoad

Fields

§

Sql

Fields

§area: &'static str
§phase: SqlPhase
§label: String
§source: Error
§

LimitTooSmall

Fields

§limit: usize
§

PositiveDurationInvalid

Fields

§flag: String
§value: String
§

PositiveDurationTooSmall

Fields

§flag: String
§ns: i64
§

NameFilterConflict

§

SearchCpuSampleUnsupported

§

SearchSortInvalid

Fields

§

TimelineIntervalInvalid

Fields

§value: String
§

TimelineIntervalTooSmall

Fields

§interval_ns: i64
§

TimelineKindNotAllowed

Fields

§kind: &'static str
§

VizTimelineWindowRequired

§

VizTimelineUnknownTrackKind

Fields

§kind: String
§

VizTimelineInvalidSelector

Fields

§selector: String
§

VizTimelineUnknownSelector

Fields

§kind: String
§selector: String
§

VizTimelineSelectorNonNegativeInt

Fields

§selector: String
§

VizTimelineSelectorPositiveInt

Fields

§selector: String
§

VizTimelineHighlightTopRequired

§

VizTimelineUnknownHighlightScope

Fields

§scope: String
§

VizTimelineUnknownHighlightMetric

Fields

§metric: String
§

VizTimelineCudaStreamDeviceRequired

§

VizTimelineCudaStreamStreamRequired

§

VizTimelineCudaStreamDeviceAll

§

VizTimelineArtifact

Fields

§

SlicesUnknownGroupBy

Fields

§group_by: String
§

SlicesSortInvalid

Fields

§

SlicesPrereqTableMissing

Fields

§table: &'static str
§

SlicesGpuEventTableMissing

§

NvtxAttributionPrereqTableMissing

Fields

§table: &'static str
§

NvtxAttributionNoAttributableTableMatch

§

NvtxAttributionContextInfoMissing

§

GraphReplaysNvtxPrereqTableMissing

Fields

§table: &'static str
§

GraphReplaysSortInvalid

Fields

§

StatsGroupByNameAxisConflict

Fields

§previous: &'static str
§current: &'static str
§

StatsGroupByUnknownToken

Fields

§token: String
§

StatsKindNotAllowed

Fields

§kind: &'static str
§

StatsGroupByLocationAxisConflict

Fields

§kinds: String
§

StatsGroupByDeviceParentRequired

Fields

§verb: &'static str
§axis: &'static str
§

StatsGridBlockKindConflict

Fields

§kind: &'static str
§

StatsSortInvalid

Fields

§

StatsBySizeKindNotAllowed

Fields

§kind: &'static str
§

StatsBySizeGroupByUnsupported

Fields

§axes: String
§

StatsBySizeSortInvalid

Fields

§

StatsNvtxHierarchyAxesConflict

§

StatsNvtxHierarchyGraphAxisConflict

Fields

§axis_name: &'static str
§

StatsNvtxHierarchySelfAttribute

Fields

§axis_name: &'static str
§

StatsNvtxHierarchyPrereqTableMissing

Fields

§axis_name: &'static str
§table: &'static str
§

StatsNvtxHierarchyContextInfoMissing

Fields

§axis_name: &'static str
§

NcuCommandUnknownEnv

Fields

§

NcuCommandRowIdKind

Fields

§row_id: String
§

NcuCommandKernelTableMissing

§

NcuCommandMetadataTableMissing

§

NcuCommandKernelNotFound

Fields

§row_id: String
§

NcuCommandKernelNameMissing

Fields

§row_id: String
§

NcuCommandLaunchRecipeMissing

§

NcuCommandAmbiguousProcessRecipe

Fields

§process: String
§

NcuCommandAmbiguousLaunchRecipe

§

KindLocationFilterConflict

Fields

§verb: String
§axes: &'static str
§kinds: String
§

KindNvtxAttributionUnsupported

Fields

§verb: String
§kinds: String
§

GapsInvalidScope

Fields

§scope: String
§

GapsMinDurationInvalid

Fields

§value: String
§

GapsMinTooSmall

Fields

§min_ns: i64
§

GapsStreamRequiresStreamScope

Fields

§scope: &'static str
§

GapsDeviceInTraceScope

Fields

§device: i32
§

GapsSortStreamRequiresStreamScope

Fields

§scope: &'static str
§

GapsSortDeviceInTraceScope

§

GapsSortInvalid

Fields

§

MetricsSortWithBucket

§

MetricsBucketTooSmall

Fields

§bucket_ns: i64
§

MetricsSortInvalid

Fields

§

MetricsUnknownSource

Fields

§metric_source: String
§

MetricsGpuTableMissing

§

MetricsGpuDictionaryMissing

§

MetricsGpuCounterNoMatch

Fields

§glob: String
§

MetricsNicTableMissing

§

MetricsNicDictionaryMissing

§

MetricsNicIdMapMissing

§

MetricsNicInfoMissing

§

MetricsNicCounterNoMatch

Fields

§glob: String
§

MetricsCpuSamplingCompositeEventsMissing

§

MetricsCpuSamplingUnknownGroupBy

Fields

§axis: String
§

MetricsCpuSamplingCallchainsMissing

Fields

§group_by: &'static str
§

MetricsCpuSamplingBucketCallchainsMissing

Fields

§group_by: &'static str
§

MetricsCpuSamplingStackBucketUnsupported

§

MetricsCpuSamplingNameOnNumericAxis

Fields

§group_by: &'static str
§

MetricsCpuSchedEventsMissing

§

MetricsCpuSchedUnknownGroupBy

Fields

§axis: String
§

GraphReplaysTopNodesTooSmall

Implementations§

Source§

impl NsysQueryError

Source

pub fn internal_unsupported_kind(verb: &'static str, kind: &'static str) -> Self

Source

pub fn internal_sql_kind_tag_invalid(verb: &'static str, kind: &str) -> Self

Source

pub fn internal_nvtx_attribution_unsupported_kind( verb: &'static str, kind: &'static str, ) -> Self

Source

pub fn internal_stats_row_missing(query: &'static str) -> Self

Source

pub fn internal_slice_builder_missing(row_id: i64) -> Self

Source

pub fn nvtx_reverse_sidecar_load( mode: &'static str, source: NsysDataError, ) -> Self

Source

pub fn trace_open(source: NsysDataError) -> Self

Source

pub fn correlation_index_load(source: NsysDataError) -> Self

Source

pub fn hardware_extract(source: NsysDataError) -> Self

Source

pub fn time_window_resolve(source: NsysDataError) -> Self

Source

pub fn data(source: NsysDataError) -> Self

Source

pub fn summary_meta_load(source: NsysDataError) -> Self

Source

pub fn nvtx_parent_sidecar_ensure(source: NsysDataError) -> Self

Source

pub fn nvtx_nesting_load(source: NsysDataError) -> Self

Source

pub fn nvtx_tree_load(source: NsysDataError) -> Self

Source

pub fn sql( area: &'static str, phase: SqlPhase, label: impl Into<String>, source: Error, ) -> Self

Source

pub fn sql_prepare( area: &'static str, label: impl Into<String>, source: Error, ) -> Self

Source

pub fn sql_query( area: &'static str, label: impl Into<String>, source: Error, ) -> Self

Source

pub fn sql_read( area: &'static str, label: impl Into<String>, source: Error, ) -> Self

Source

pub fn sql_parts(&self) -> Option<(&'static str, SqlPhase, &str)>

Source

pub fn search_sort_invalid(source: SortParseError) -> Self

Source

pub fn kind_location_filter_conflict( verb: &str, axes: &'static str, kinds: String, ) -> Self

Source

pub fn kind_nvtx_attribution_unsupported(verb: &str, kinds: String) -> Self

Source

pub fn gaps_invalid_scope(scope: &str) -> Self

Source

pub fn gaps_sort_invalid(source: SortParseError) -> Self

Source

pub fn graph_replays_sort_invalid(source: SortParseError) -> Self

Source

pub fn metrics_unknown_source(metric_source: &str) -> Self

Source

pub fn metrics_sort_invalid(source: SortParseError) -> Self

Source

pub fn metrics_gpu_counter_no_match(glob: &str) -> Self

Source

pub fn metrics_nic_counter_no_match(glob: &str) -> Self

Source

pub fn metrics_cpu_sampling_unknown_group_by(axis: &str) -> Self

Source

pub fn metrics_cpu_sched_unknown_group_by(axis: &str) -> Self

Source

pub fn slices_unknown_group_by(group_by: &str) -> Self

Source

pub fn slices_sort_invalid(source: SortParseError) -> Self

Source

pub fn stats_group_by_unknown_token(token: &str) -> Self

Source

pub fn stats_group_by_location_axis_conflict(kinds: String) -> Self

Source

pub fn stats_by_size_group_by_unsupported(axes: String) -> Self

Source

pub fn stats_sort_invalid(source: SortParseError) -> Self

Source

pub fn stats_by_size_sort_invalid(source: SortParseError) -> Self

Source

pub fn ncu_command_unknown_env(env: &str) -> Self

Source

pub fn ncu_command_row_id_kind(row_id: impl ToString) -> Self

Source

pub fn ncu_command_kernel_not_found(row_id: impl ToString) -> Self

Source

pub fn ncu_command_kernel_name_missing(row_id: impl ToString) -> Self

Source

pub fn ncu_command_ambiguous_process_recipe(process: &str) -> Self

Trait Implementations§

Source§

impl Debug for NsysQueryError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for NsysQueryError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for NsysQueryError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl VeloqDiagnostic for NsysQueryError

Source§

fn code(&self) -> ErrorCode

Source§

fn message(&self) -> Cow<'_, str>

Source§

fn hint(&self) -> Option<Cow<'_, str>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.