# @profile slows down MPI?

**URL:** https://discourse.julialang.org/t/profile-slows-down-mpi/121700
**Category:** Performance
**Tags:** mpi, profiling
**Created:** [October 24, 2024, 2:10pm UTC](https://discourse.julialang.org/t/profile-slows-down-mpi/121700 "2024-10-24T14:10:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![johnomotani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnomotani/32/26753_2.png) [@johnomotani](https://discourse.julialang.org/u/johnomotani)
#### Post date: [October 24, 2024, 2:10pm UTC](https://discourse.julialang.org/t/profile-slows-down-mpi/121700/1 "2024-10-24T14:10:33Z")

</div>

Is anybody else having problems when trying to `@profile` an MPI program? I seem to find that when I add `@profile` my code slows down a lot, with a load of time being spent in MPI calls (a lot more than I would expect). I think I’ve tried the same thing before without any problem, maybe 6 months to 1 year ago, so the apparent slow-down surprises me. It’s entirely possible the problem is something that’s changed in my code, so I wondered if anyone else had a similar problem, in case a problem has appeared in the interaction between MPI.jl and Profile.jl…
