# Profiling the execution of a model

**URL:** <https://discourse.mc-stan.org/t/profiling-the-execution-of-a-model/5068>\
**Category:** Developers\
**Created:** [August 2, 2018, 7:26pm UTC](https://discourse.mc-stan.org/t/profiling-the-execution-of-a-model/5068 "2018-08-02T19:26:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [August 8, 2018, 8:36pm UTC](https://discourse.mc-stan.org/t/profiling-the-execution-of-a-model/5068/3 "2018-08-08T20:36:44Z")

</div>

[This thread](http://discourse.mc-stan.org/t/profiling-c-code/3033) has some generic suggestions, but I know you were seeing all of the virtual `chain()` calls being identified as the same call and I’m not sure how that works. I was seeing that with `-g` (in [this post](http://discourse.mc-stan.org/t/profiling-c-code/3033/19?u=seantalts) in that thread) that it was identifying at least which class’s chain methods were being called most.

---

_[View the full topic](https://discourse.mc-stan.org/t/profiling-the-execution-of-a-model/5068)._
