Executing NYTprof in classic asp embedded with perl script

134 Views Asked by At
<%@ Language="PERLSCRIPT" %>
<!---------------------------------------------------------------------------
#include VIRTUAL="/include/perl/widgetinclude.asp"
---------------------------------------------------------------------------->
<!---------------------------------------------------------------------------
#include VIRTUAL="/include/perl/path.asp"
---------------------------------------------------------------------------->
<!---------------------------------------------------------------------------
#include VIRTUAL="/include/perl/widgetpackages.asp"
---------------------------------------------------------------------------->
<!---------------------------------------------------------------------------
#include VIRTUAL="/include/perl/web.asp"
---------------------------------------------------------------------------->
<!---------------------------------------------------------------------------
#include VIRTUAL="/include/perl/eventlog.asp"
---------------------------------------------------------------------------->
<%

EVENTLOG::LogOpen();

%>
<!---------------------------------------------------------------------------
#include VIRTUAL="/oasiscs/include/perl/security.asp"
---------------------------------------------------------------------------->
<%
$Response->Redirect("/oasiscs/security.asp") unless    (SECURITY::SecurityCheck("oasiscs"));
%>
<!---------------------------------------------------------------------------
#include VIRTUAL="/include/perl/form.asp"
---------------------------------------------------------------------------->
<%
#----------------------------------------------------------------------------
#  Include service-specific custom packages.
#----------------------------------------------------------------------------
require "admin.pl"                     || die "Couldn't load admin.pl";
require "couponcodes.pl"               || die "Couldn't load couponcodes.pl"; 
require "customers.pl"                 || die "Couldn't load customers.pl";
require "newpcs.pl"                    || die "Couldn't load newpcs.pl";
require "orders.pl"                    || die "Couldn't load orders.pl";
require "pharmacy.pl"                  || die "Couldn't load pharmacy.pl";
require "stores.pl"                    || die "Couldn't load stores.pl";
require "website.pl"                   || die "Couldn't load website.pl";
%>
<HTML>
</HTML>

I need to profile an asp script that runs perl script. Any ideas how I could execute NYTprof in classic asp with perl script?

Above is the sample code (not complete)

Any help would be appreciated.

Thanks.

1

There are 1 best solutions below

3
On

The following should work:

<%

use Devel::NYTProf;

EVENTLOG::LogOpen();

%>

Also, there is Win32::ASP::Profile; might be an alternative...