Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated function graph svg is empty #180

Open
lighthuter opened this issue Jan 15, 2024 · 0 comments
Open

Generated function graph svg is empty #180

lighthuter opened this issue Jan 15, 2024 · 0 comments

Comments

@lighthuter
Copy link

I have a profile generated by https://github.com/reliforp/reli-prof and converted to callgrind format. This file works perfectly with qcachegrind, but svg generated by webcache is empty

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.43.0 (0)
 -->
<!-- Title: %3 Pages: 1 -->
<svg width="8pt" height="8pt"
 viewBox="0.00 0.00 8.00 8.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 4)">
<title>%3</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-4 4,-4 4,4 -4,4"/>
</g>
</svg>

Profile has structure like this:

# format callgrind
events: Samples

fl=/data/vendor/graham-campbell/result-type/src/Success.php
fn=GrahamCampbell\ResultType\Success::flatMap
93 1
cfl=/data/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php
cfn=Dotenv\Parser\EntryParser::{closure}(/data/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php:51-58)
calls=-1 -1
93 1
cfl=/data/vendor/vlucas/phpdotenv/src/Parser/Parser.php
cfn=Dotenv\Parser\Parser::{closure}(/data/vendor/vlucas/phpdotenv/src/Parser/Parser.php:46-48)
calls=-1 -1
93 1
cfl=/data/vendor/vlucas/phpdotenv/src/Loader/Resolver.php
cfn=Dotenv\Loader\Resolver::{closure}(/data/vendor/vlucas/phpdotenv/src/Loader/Resolver.php:40-42)
calls=-1 -1
93 1
cfl=/data/vendor/vlucas/phpdotenv/src/Loader/Loader.php
cfn=Dotenv\Loader\Loader::{closure}(/data/vendor/vlucas/phpdotenv/src/Loader/Loader.php:26-45)
calls=-1 -1
93 1

Is this format supported by webgrind? Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant