Skip to content

kleisauke/vips-flamegraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libvips flame graphs

A collection of flame graphs used to identify the most frequent code-paths in libvips.

Build

# Compile libvips with
meson setup build --prefix=/usr -Dexamples=false -Ddeprecated=false \
  -Dintrospection=disabled -Dc_args=-g1 -Dcpp_args=-g1
meson compile -C build
sudo meson install -C build

# Compile bench program with
g++ -O2 -g1 `pkg-config vips-cpp --cflags --libs` -o bench.out bench.cpp

# Timings
/usr/bin/time -f %M:%e vips copy images/x.jpg output/x2.jpg --vips-concurrency=1

Capture stacks

VIPS_CONCURRENCY=1 perf record --call-graph=dwarf ./bench.out images/x.jpg output/x2.jpg

Create flame graph

perf script | 
  ./FlameGraph/stackcollapse-perf.pl | 
  ./FlameGraph/flamegraph.pl --title="On-CPU Flame Graph for libvips" > output/bench.svg

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages