Sample timing plots

Each of these was made by adding this code to setplot.py, with different choices of units:
    def make_timing_plots(plotdata):
        import os,sys
        from clawpack.visclaw import plot_timing_stats
        try:
            timing_plotdir = plotdata.plotdir + '/_timing_figures'
            os.system('mkdir -p %s' % timing_plotdir)
            units = {'comptime':'seconds', 'simtime':'dimensionless',
                     'cell':'millions'}
            plot_timing_stats.make_plots(outdir=plotdata.outdir,
                                          make_pngs=True,
                                          plotdir=timing_plotdir,
                                          units=units)
        except:
            print('*** Error making timing plots')

    otherfigure = plotdata.new_otherfigure(name='timings',
                    fname='_timing_figures/timing.html')
    otherfigure.makefig = make_timing_plots

Examples

In each example the plot index has a link at the bottom to the timing plots, or click on the direct link below...