Skip to content

Native Android plugin for Unity enabling the use of detailed profiler tags inside Arm's DS-5 Streamline profiler.

License

Notifications You must be signed in to change notification settings

spaceapegames/streamline-native-profiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

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.

Usage

  1. 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)
  2. 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

Building

  1. Open a terminal and navigate to your NDK install eg
cd /Users/MyName/Library/Android/sdk/ndk-bundle/
  1. 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
  1. Copy the libraries in src/libs/ to Assets/Plugins/Android/libs/