Timing performance through python?

Another option, perhaps more verbose, is as follows:

> mpirun -np  2 ./bin/pvbatch -l /tmp/logs.txt,TRACE -- /tmp/sample.py

this will generate /tmp/logs.txt.0, /tmp/logs.txt.1, … which give more info about various inner workings. You can qualify the log to only print filter execution info, for example, using something like the following:

> env PARAVIEW_LOG_EXECUTION_VERBOSITY=INFO \
   mpirun -np  2 ./bin/pvbatch -l /tmp/logs.txt -- /tmp/sample.py

Available variables are documented here.