Skip to content

Call graph dot files missing #219

@choroba

Description

@choroba

When running nytprofhtml, only two dot files are created: packages-callgraph.dot and subs-callgraph.dot. All other pages contain links to additional dot files, but they don't exist.

I've found an abandoned project from 2012 where the dot files existed in the nytprof/ directory. The files claim to be produced by NYTProf 4.09.

It's interesting that changing the following condition starts creating the files - but 4.09 had the same condition as the current version.

diff --git a/bin/nytprofhtml b/bin/nytprofhtml
index 0f87ecb..861ac01 100755
--- a/bin/nytprofhtml
+++ b/bin/nytprofhtml
@@ -450,7 +450,7 @@ $reporter->set_param(
             };
 
             our %dot_file_generated;
-            if ($dot_file_generated{$dot_file}++) { # just once for line/block/sub
+            if (! $dot_file_generated{$dot_file}++) { # just once for line/block/sub
                 my $subs_in_file = $profile->subs_defined_in_file($filestr, 0);
                 # include subs defined in this file
                 # and/or called from subs defined in this file

Originally reported at PerlMonks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions