osprofiler.cmd package

Submodules

osprofiler.cmd.cliutils module

osprofiler.cmd.cliutils.add_arg(func: Callable[[...], Any], *args: Any, **kwargs: Any) None[source]

Bind CLI arguments to a shell.py do_foo function.

osprofiler.cmd.cliutils.arg(*args: Any, **kwargs: Any) Callable[[Callable[[...], Any]], Callable[[...], Any]][source]

Decorator for CLI args.

Example:

>>> @arg("name", help="Name of the new entity")
    ... def entity_create(args):
    ... pass
osprofiler.cmd.cliutils.env(*args: str, **kwargs: str) str[source]

Returns the first environment variable set.

If all are empty, defaults to ‘’ or keyword arg default.

osprofiler.cmd.commands module

class osprofiler.cmd.commands.BaseCommand[source]

Bases: object

group_name: str | None = None
class osprofiler.cmd.commands.TraceCommands[source]

Bases: BaseCommand

group_name: str | None = 'trace'
list(args: Namespace) None[source]

List all traces

show(args: Namespace) None[source]

Display trace results in HTML, JSON or DOT format.

osprofiler.cmd.shell module

Command-line interface to the OpenStack Profiler.

class osprofiler.cmd.shell.OSProfilerShell(argv: list[str])[source]

Bases: object

osprofiler.cmd.shell.main(args: list[str] | None = None) int | None[source]

Module contents