GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  VCP::DEBUG (3)

.ds Aq ’

NAME

VCP::Debug - debugging support for VCP

CONTENTS

SYNOPSIS

DESCRIPTION

Debugging support for VCP. Enabled by setting the environment variable VCPDEBUG=1.
debug


   debug $foo if debugging $self ;



Emits a line of debugging (a \n will be appended). Use to avoid the \n. Any undefined parameters will be displayed as <undef>.

debugging


   debug "blah" if debugging ;



Returns TRUE if the caller’s module is being debugged



   debug "blah" if debugging $self ;
   debug "blah" if debugging $other, $self ; ## ORs the arguments together



Returns TRUE if any of the arguments are being debugged. Plain strings can be passed or blessed references.

profiling Returns true if VCP is profiling itself compared to shell command performance.

This is different from using perl’s profilers (-d:DProf and the like); this profiling tracks the operation of some of VCP’s internals and also how long is spent waiting for child processes to complete.

$VCP::Debug::profile_category Sets the category for the next profile_start and profile_end pair of calls:



   local $VCP::Debug::profile_category = "p4 files" if profiling;



profile_start Notes the current time as the start of a profiling interval.

Defaults to the category $profile_category if none passed.

profile_end Notes the current time as the end of a profiling interval.

Defaults to the category $profile_category if none passed.

profile_group Called with the prefix of a set of profile categories to sum up and emit subtotals for.

COPYRIGHT

Copyright 2000, Perforce Software, Inc. All Rights Reserved.

This module and the VCP package are licensed according to the terms given in the file LICENSE accompanying this distribution, a copy of which is included in vcp.

AUTHOR

Barrie Slaymaker <barries@slaysys.com>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 VCP::DEBUG (3) 2004-11-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.