Here’s an example of a cgi script running so that it is profiled.. script.cgi : #!/usr/bin/perl -d use Devel::DProf; # [...]