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
VCP::Debug(3) User Contributed Perl Documentation VCP::Debug(3)

VCP::Debug - debugging support for VCP

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 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.

Barrie Slaymaker <barries@slaysys.com>
2004-11-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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