This Android native plugin enables the user to capture more detailed information from their Unity game using Arm's Streamline profiler. Unity profiler tags (Profiler.BeginSample/EndSample
) will appear in your Streamline trace, including both Unity-generated and user-generated tags.
Using the Unity IUnityProfilerCallbacks
interface, profiler tags are forwarded onto the Streamline tool using its annotation functionality, enabling more verbose output and information from your captures.
- Copy the contents of Assets directory to your project (it will be easier if you retain the path, then the plugin importer will set CPU architecture for the .so's correctly)
- Attach the
Assets/Scripts/StreamlinePlugin.cs
script to a game object of your choice in your first scene to make sure the plugin is loaded as early as possible
- Open a terminal and navigate to your NDK install eg
cd /Users/MyName/Library/Android/sdk/ndk-bundle/
- Build the project by calling the
ndk-build
program and providing it the path of the repo src folder eg
./ndk-build -C /Users/MyName/repos/shared/streamline-native-profiler/src
- Copy the libraries in
src/libs/
toAssets/Plugins/Android/libs/