reprospect.tools.nsys.session module

class reprospect.tools.nsys.session.Command(*, executable: str | Path, output: Path, opts: tuple[str, ...] = (), nvtx_capture: str | None = None, capture_range_end: str = 'stop', args: tuple[str | Path, ...] | None = None, env: Mapping[str, str] | None = None)View on GitHub

Bases: object

Run a nsys command line.

__init__(*, executable: str | Path, output: Path, opts: tuple[str, ...] = (), nvtx_capture: str | None = None, capture_range_end: str = 'stop', args: tuple[str | Path, ...] | None = None, env: Mapping[str, str] | None = None) None

Method generated by attrs for class Command.

args: tuple[str | Path, ...] | None

Arguments to pass to the executable.

capture_range_end: str

NVTX capture range end.

cmd: tuple[str | Path, ...]
env: Mapping[str, str] | None

Mapping used to update the environment before running, see run().

executable: str | Path

Executable to run.

nvtx_capture: str | None

NVTX capture string.

opts: tuple[str, ...]

Options that do not involve paths.

output: Path

Report file.

run(*, cwd: Path | None = None, env: MutableMapping[str, str] | None = None) intView on GitHub
class reprospect.tools.nsys.session.Session(command: Command)View on GitHub

Bases: object

Nsight Systems session interface.

__init__(command: Command) None
command: Command
export_to_sqlite(cwd: Path | None = None) PathView on GitHub

Export report to .sqlite.

extract_statistical_report(report: str = 'cuda_api_sum', filter_nvtx: str | None = None, cwd: Path | None = None) DataFrameView on GitHub

Extract report, filtering the database with filter_nvtx.

run(cwd: Path | None = None, env: MutableMapping[str, str] | None = None) NoneView on GitHub

Run nsys using command.