# Experimenting profiling graphviz

**URL:** <https://forum.graphviz.org/t/experimenting-profiling-graphviz/810>\
**Category:** Dev\
**Created:** [September 4, 2021, 8:02am UTC](https://forum.graphviz.org/t/experimenting-profiling-graphviz/810 "2021-09-04T08:02:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/mark/32/84_2.png) [@mark](https://forum.graphviz.org/u/mark)\
**Post date:** [September 4, 2021, 8:02am UTC](https://forum.graphviz.org/t/experimenting-profiling-graphviz/810/1 "2021-09-04T08:02:27Z")

</div>

Hi folks, I’m doing some profiling at work right now, and thought I’d try the profiling skills on Graphviz, to see if profiling would teach me about the architecture of graphviz.

I wrote up a blogpost with what I found: [Reverse Engineering Graphviz's Architecture by Profiling](https://www.markhansen.co.nz/profiling-graphviz/)

No doubt the architecture is old news to many but it was interesting for me to see the important components of Graphviz jump out so clearly on the flamechart.

---

<div class="post-metadata">

**Author:** ![smattr](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/smattr/32/85_2.png) [@smattr](https://forum.graphviz.org/u/smattr)\
**Post date:** [September 4, 2021, 3:32pm UTC](https://forum.graphviz.org/t/experimenting-profiling-graphviz/810/2 "2021-09-04T15:32:36Z")

</div>

This is great!

The [unknown] calls you mention maybe a result of when the plugin system calls through a function pointer. I’ve seen this kind of thing show up before when profiling with Valgrind.

Now you’re an expert, any chance you want to write [the perf section](https://gitlab.com/graphviz/graphviz/-/blob/main/DEVELOPERS.md#linux-perf)? 😉

---

<div class="post-metadata">

**Author:** ![magjac](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/magjac/32/16_2.png) [@magjac](https://forum.graphviz.org/u/magjac)\
**Post date:** [September 14, 2021, 9:11pm UTC](https://forum.graphviz.org/t/experimenting-profiling-graphviz/810/3 "2021-09-14T21:11:20Z")

</div>

Nice article! My colleague wondered why you didn’t test [hotspot](https://www.kdab.com/hotspot-gui-linux-perf-profiler/) which is his favorite.

---

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/mark/32/84_2.png) [@mark](https://forum.graphviz.org/u/mark)\
**Post date:** [September 14, 2021, 11:41pm UTC](https://forum.graphviz.org/t/experimenting-profiling-graphviz/810/4 "2021-09-14T23:41:33Z")

</div>

Only because I didn’t have a Linux GUI workstation handy, and I don’t think I can install it on macOS?

In practice that would probably prevent me from sharing profiles with colleagues using macOS vs web-based UIs.
