Home / Companies / Sentry / Blog / Post Details
Content Deep Dive

Enabling Out-of-the-Box Performance Insights in Unity Games with the Sentry SDK

Blog post from Sentry

Post Details
Company
Date Published
Author
Stefan Jandl
Word Count
1,597
Language
English
Hacker News Points
-
Summary

The Sentry Unity SDK offers out-of-the-box performance insights for Unity games by enabling auto-instrumentation. It supports crash reporting and captures native crashes on various platforms. The SDK is designed to work with minimal setup from the user, offering visualization of span trees and screen rendering concepts. Its multi-platform tool integrates via P/Invoke (FFI) with native SDKs for each platform. By understanding the Unity lifecycle and identifying key points for instrumentation, Sentry SDK for Unity provides auto-instrumentation for startup procedures and scene loading in games. It uses Intermediate Language (IL) weaving to modify generated Assembly-CSharp.dll files and adds span functionality without requiring additional code from the user. This setup allows for future expansion of instrumentation possibilities, such as automatic UnityWebRequests or timing actions around button clicks.