Bigwen-1 commented on issue #7671:
URL: https://github.com/apache/apisix/issues/7671#issuecomment-1229873271

   I tried to analyze the transcoding performance with the flame graph, but 
perf always failed to obtain stack index. Open SVG display: ERROR: No Valid 
Input provided to flamegraph.pl.   Can you give me a hand?
   
   I operate as follows:
   root@xxali-ecs-xxx-xx-xx-xx:/data/server/FlameGraph/FlameGraph# ls
   aix-perf.pl                 files.pl          record-test.sh                 
   stackcollapse-jstack.pl       stackcollapse-vsprof.pl
   demos                       flamegraph.pl     stackcollapse-aix.pl           
   stackcollapse-ljp.awk         stackcollapse-vtune.pl
   dev                         jmaps             stackcollapse-bpftrace.pl      
   stackcollapse-perf.pl         stackcollapse-wcp.pl
   difffolded.pl               perf.data         
stackcollapse-chrome-tracing.py   stackcollapse-perf-sched.awk  
stackcollapse-xdebug.php
   docs                        perf.data.old     stackcollapse-elfutils.pl      
   stackcollapse.pl              test
   example-dtrace-stacks.txt   pkgsplit-perf.pl  stackcollapse-gdb.pl           
   stackcollapse-pmc.pl          test.sh
   example-dtrace.svg          pmCount.svg       stackcollapse-go.pl            
   stackcollapse-recursive.pl
   example-perf-stacks.txt.gz  range-perf.pl     stackcollapse-instruments.pl   
   stackcollapse-sample.awk
   example-perf.svg            README.md         
stackcollapse-java-exceptions.pl  stackcollapse-stap.pl
   root@xxali-ecs-xxx-xx-xx-xx:/data/server/FlameGraph/FlameGraph# perf record 
-F 99 -a  -g   -p 10853 -- sleep 30
   Warning:
   PID/TID switch overriding SYSTEM[ perf record: Woken up 1 times to write 
data ]
   [ perf record: Captured and wrote 0.012 MB perf.data ]
   root@xxali-ecs-xxx-xx-xx-xx:/data/server/FlameGraph/FlameGraph# perf script 
> out.perf
   root@xxali-ecs-xxx-xx-xx-xx:/data/server/FlameGraph/FlameGraph# 
./stackcollapse-perf.pl out.perf > out.folded
   root@xxali-ecs-xxx-xx-xx-xx:/data/server/FlameGraph/FlameGraph# 
./flamegraph.pl out.folded > pmCount.svg
   ERROR: No stack counts found
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to