# Is one Carbon plugin slowing down your Rust server?

[Rust server guides](https://rustsc.com/learn/index.html.md) / [Troubleshooting](https://rustsc.com/learn/troubleshooting/index.html.md)

If the world pauses when players open a particular menu, record that action on a test copy. A plugin that has accumulated the most time since startup may simply be the one players use most often.

## Give the recording a repeatable job

Use the same map, build, plugin settings and player account in both runs. Have a helper stand in the same place. On the first run, leave the menu closed. On the second, let the helper open it the same number of times you wrote down beforehand. Keep unrelated updates and backups outside both recordings.

## Compare the work inside each recording

Use a Carbon build that supports c.profile.plugin. In the test server’s admin console, run c.profile.plugin followed by the loaded script plugin name, the duration in seconds and -t for call timing. If Carbon says call tracking is off, enable TrackCalls in carbon/config.profiler.json and restart the test server.

Wait until Carbon reports recording has started before the helper opens the menu. The plugin may recompile as the recording starts and ends. Use matching options for both runs.

| Observation | What to try next |
| --- | --- |
| Menu openings coincide with a rise in calls and time for one method. | Repeat the action and save both recordings for the plugin author. |
| Both recordings show similar work, but the pause still occurs. | Capture what else the server was doing at that moment. |
| The delay appears only while recording detailed timings. | Repeat the player action with profiling stopped before attributing the delay to the plugin. |

## Give the author a case they can repeat

Export the two profiles. Include the plugin and Carbon versions, the recorded interval and the exact menu action. Say whether the helper saw the same delay without the profiler running. That lets the author compare like with like, even if their test machine runs at a different speed.

## Sources

- [Carbon Mono profiler and recording options](https://carbonmod.gg/devs/features/mono-profiler)
- [Carbon single-plugin profiling command source](https://github.com/CarbonCommunity/Carbon/blob/b27f51570ebe53873ff79aea21331290ee2afbd5/src/Carbon.Components/Carbon.Common/src/Carbon/CorePlugin/Core.Commands.Profiler.cs)

## Related resources

- [Guides](https://rustsc.com/support/guides/index.html.md)

---

HTML version: https://rustsc.com/learn/troubleshooting/measure-one-carbon-plugin-during-a-server-stall/
