Skip to content
Perl parser for call grind files (output by xdebug profiler)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Callgrind
t
.gitignore
.travis.yml
Changes
README.pod
dist.ini

README.pod

NAME

Callgrind::Parser - Parses Callgrind output file into a hashref representing the call tree of the source program

VERSION

version 0.001

SYNOPSIS

use Callgrind::Parser;

my $profile = Callgrind::Parser::parseFile('t/data/helloworld.out')

print "Hello world took ".$profile->{main}{Time}." milliseconds to run\n";

DESCRIPTION

The parser was designed to read Callgrind profile data as described here. Primarily written to read and manipulate profiling output generated by xdebug. Thus far it has only been tested with files generated by xdebug.

METHODS

parseFile

This method does all the work of the function. Takes in the full path to a file to parse Returns a hash containing the metadata read from the file header, as well has a hash ref which represents the full call tree of the program from which the profile was generated.

AUTHOR

Dave Mueller <dave@perljedi.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Dave Mueller.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

You can’t perform that action at this time.