osprofiler.cmd package

Submodules

osprofiler.cmd.cliutils module

osprofiler.cmd.cliutils.add_arg(func, *args, **kwargs)[source]

Bind CLI arguments to a shell.py do_foo function.

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

Decorator for CLI args.

Example:

>>> @arg("name", help="Name of the new entity")
    ... def entity_create(args):
    ... pass
osprofiler.cmd.cliutils.env(*args, **kwargs)[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 = None
class osprofiler.cmd.commands.TraceCommands[source]

Bases: BaseCommand

group_name = 'trace'
list(args)[source]

List all traces

show(args)[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)[source]

Bases: object

osprofiler.cmd.shell.main(args=None)[source]

Module contents