Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.21 KB

README.md

File metadata and controls

19 lines (16 loc) · 1.21 KB

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/