Profiling running service code
The most commonly utilized method for implementing profiling in Go code is enabling the profiler in your HTTP handler function. This can be useful for debugging live production systems. Being able to profile your production system in real time lets you make decisions based on real, live production data, rather than your local development environment.
Sometimes, errors only occur when the order of magnitude of data for a particular system reaches a specific scale. A method or function that can handle 1,000 data points effectively might not be able to handle 1,000,000 data points effectively on the underlying hardware that the function or method is running on. This is especially important while running on hardware ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access