2
<%@ 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>

我需要分析一个运行 perl 脚本的 asp 脚本。有什么想法可以用 perl 脚本在经典 asp 中执行 NYTprof 吗?

以上是示例代码(不完整)

任何帮助,将不胜感激。

谢谢。

4

1 回答 1

0

以下应该有效:

<%

use Devel::NYTProf;

EVENTLOG::LogOpen();

%>

此外,还有Win32::ASP::Profile;可能是另一种选择...

于 2014-03-25T12:49:37.100 回答