
pmusage - generate usage graph for a perl module

pmusage [OPTIONS] class

pmusage creates usage graphs for Perl modules. The graph is constructed as a directed graph, and output in one of the following formats:
The file format used by dot, which is part of the AT&T graphviz package.
The file format used by vcg, a tool originally created for visualising compiler graphs.
The file format used by daVinci, a tool for visualising graphs, and interactively creating them.
A simple XML file format used for representing directed graphs created using the perl Graph class.
The following example shows how you might generate and view the usage graph for the Net::FTP module:
% pmusage -format dot Net::FTP
% dot -Tps -o usage.ps usage.dot
% ghostview usage.ps
By default the graph is written to a file called usage, with an extension that identifies the format. You can specify the output filename explicitly using the -o switch:
% pmusage -format vcg -o ftp.vcg Net::FTP
% xvcg ftp.vcg
pmusage will ignore pragmas (eg strict and vars) unless you use the -pragmas option:
% pmusage -pragmas -format dot GIFgraph

The file format for the usage graph.
The file to write the graph to. Defaults to usage.format.
Pragmas, like strict, should be included in the graph.
Display a short help message including command-line options.
Display the full documentation for pmusage.
Display the version of pmusage.
Display verbose information as pmusage runs.
Display debugging information as pmusage runs.

Graph::Writer:: classes you have installed.
A collection of classes for reading and writing directed graphs in various file formats. Available from CPAN.
The class used to represent the directed graph. Available from CPAN.
The home page for the AT&T graphviz toolkit, which includes the dot tool.
The home page for VCG, a tool for visualising compiler graphs.

$Revision: 1.2 $

Neil Bowers <neilb@cre.canon.co.uk>

Copyright (C) 2001 Canon Research Centre Europe. All rights reserved.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.