def cmd():
sdat = StagyyData(conf.core.path)<EOL>if sdat.rprof is None:<EOL><INDENT>return<EOL><DEDENT>if conf.rprof.grid:<EOL><INDENT>for step in sdat.walk.filter(rprof=True):<EOL><INDENT>plot_grid(step)<EOL><DEDENT><DEDENT>lovs = misc.list_of_vars(conf.rprof.plot)<EOL>if not lovs:<EOL><INDENT>return<EOL><DEDENT>if conf.rprof.average:<EOL><INDENT>plot_average(sdat, lovs)<EOL><DEDENT>else:<EOL><INDENT>plot_every_step(sdat, lovs)<EOL><DEDENT>
Implementation of rprof subcommand.

    Other Parameters:
        conf.rprof
        conf.core