Profiling

How to use/Running Sampler

Then you can /sampler start and /sampler stop while it's lagging.

Then a simple /sampler export [name of exported nps file here] will write out the .nps file that can be read by the developers in VisualVM.

Where to run Sampler?

Is it a lag issue on the server, like tick lag? Run Sampler on the server, NOT on your client!

Is it a lag issue on the client, like FPS lag? Run Sampler on the client, NOT on your server!

Installing Sampler

Sampler is a mod by Player that generates .nps files.

You can find the forum thread over at IndustrialCraft Thread

For Minecraft 1.12

Sampler-1.84.jar

For Minecraft 1.11

Sampler-1.72.1.jar

For Minecraft 1.10

Sampler-1.69.3.jar

For Minecraft 1.9.4

Sampler-1.65.1.jar

For Minecraft 1.9

Sampler-1.63.1.jar

For Minecraft 1.8.9

Sampler-1.62.1.jar

For Minecraft 1.7.10

Sampler-1.60.1.jar

Source: Here