Unity Profiler 记录
版本 Unity 2018.4.6f1
空包
development build
魅蓝 note3
OPPO R9
VIVO x9
华为 P8 青春版
小米 8 SE
iphone se
ipad mini
ipad pro
Other (100) 14.1 MB Rendering (8) 8.2 MB GfxDeviceClient 8.0 MB ShaderLab 206.0 KB GfxDeviceGLES 22.2 KB GraphicsCaps 1.2 KB FrameDebugger 1.2 KB SpriteIDGenerator 36 B MeshIDGenerator 32 B RenderTextureMap 28 B Profiling (7) 3.1 MB Profiler 3.0 MB ProfilerManager 112.6 KB MeoryProfiler 1.1 KB ScriptingProfiler 0.8 KB PlayerConnection 0.6 KB PluginAPIHandler 448 B ProfilerConnection 4 B Managers (29) 2.0 MB BurstCompilerService 1.0 MB BaseObjectManager 0.8 MB BatchDelete 128.6 KB RTTI 12.9 KB MonoDomain 9.5 KB AsyncUploadManager 6.6 KB SharedString 5.8 KB AsyncReadManager 2.4 KB PathNameManager 1.8 KB ExecutionOrderManager 1.8 KB MeshVertexFormatManager 1.2 KB LayerTagManager 1.2 KB IntermediateRendererManager 0.9 KB TextureStreamingManager 0.7 KB RendererUpdateManager 0.6 KB GUIEventManager 0.5 KB RuntimeSceneManager 348 B LODGroupManager 241 B AssetBundleManager 128 B SpriteAtlasManager 84 B VideoManager 64 B TransferFunctionScriptingTraitsCache 64 B Sorting Group Manager 56 B CanvasManager 52 B SerializationBackwardsCompatibility 28 B AssetReferenceStorage 28 B AllCameras 28 B LazyScriptCache 28 B ManagedAttributeManager 1 B ManagedHeap.ReservedUnusedSize 268.0 KB ManagedHeap.UsedSize 244.0 KB Physics2D Moudle (1) 102.3 KB Interface 102.3 KB SerializedFile (4) 80.8 KB globalgamemanagers.assets 22.1 KB globalgamemanagers 22.0 KB library/unity default resources 19.1 KB resources/unity_builtin_extra 17.6 KB FileSystem (1) 49.4 KB ZipCentralDirectory 49.4 KB PersistentManager.Remapper (1) 32.1 KB Remapper 32.1 KB Job System (1) 3.2 KB BackgroundJobQueue 3.2 KB MemoryPools (13) 0.8 KB RenderTextureEntries 60 B QuadTreeRenderers 60 B QuadTreeBatchRenderers 60 B FixedSize 28 60 B SpeedTreeWind 60 B MeshRenderers 60 B InstancedMeshRenderers 60 B IndirectMeshRenderers 60 B FixedSize 40 60 B FixedSize 64 60 B FixedSize 20 60 B RenderBufferEntries 60 B CanvasBatchRenderers 60 B Animation Module (4) 0.5 KB AnimationBindingCache 0.5 KB AnimationManager 16 B AnimationStateNetworkInterface 4 B Interface 4 B File System (1) 368 B FileSystem 368 B ParticleSystem Module (2) 324 B ParticleSystemManager 320 B Interface 4 B Terrain Module (1) 48 B Interface 48 B Log System (1) 32 B LogMessages 32 B Vehicles Module (1) 32 B Interface 32 B Profiler (1) 32 B External Allocation Tracking 32 B Audio Module (3) 28 B AudioSource filters 12 B OnAudioFilterRead filters 12 B Interface 4 B ForceFieldManager 24 B CollisionDatabase2D (1) 16 B PhysicsContacts2D 16 B Animation (2) 8 B BlendShapeBinding 4 B ScriptPropertyBinding 4 B Physics Module (1) 4 B Interface 4 B Input Module Impl (1) 4 B Interface 4 B IMGUI Module (1) 4 B Interface 4 B TerrainPhysics Module (1) 4 B Interface 4 B TextRendering Module (1) 4 B Interface 4 B Cloth Module (1) 4 B Interface 4 B CaptureScreenshot Module (1) 4 B Interface 4 B Umbra Module (1) 4 B Interface 4 B System.ExecutableAndDlls 0 B (6) 0 B Managers 0 B Selection 0 B HideAndDontSave, Manager of AssetBundle 0 B Asset has been edited and not yet saved to disk 0 B ManagedStaticReferences 0 B Scene Object 0 B Assets (185) 1.0 MB AudioManager (1) 0.9 MB AudioManager 0.9 MB MonoScript (156) 40.3 KB GvrAudioSoundfieldExtension 321 B GvrAudioSoundfiledExtension 321 B GvrAudioListenerExtension 319 B GvrAudioListenerExtension 319 B GvrAudioSourceExtension 317 B GvrAudioSourceExtension 317 B TestResultRendererCallback 313 B RemoteTestResultSender 309 B PlayModeRunnerCallback 309 B BasePoseProvider 305 B BasePoseProvider 305 B EnumerableSetUpTearDownCommandState 301 B PlaymodeTestsController 300 B TrackedPoseDriver 294 B TrackedPoseDriver 294 B NetworkTransformVisualizer 293 B NetworkTransformVisualizer 293 B BeforeAfterTestCommandState 293 B GvrAudioRoom 293 B GvrAudioRoom 293 B NetworkProximityChecker 290 B NetworkProximityChecker 290 B NetworkMigrationManager 290 B NetworkMigrationManager 290 B NetworkTransformChild 288 B NetworkTransformChild 288 B BaseArmModel 288 B BaseArmModel 288 B NetworkStartPosition 287 B NetworkStartPosition 287 B ActivationPlayableAsset 286 B NetworkLobbyManager 286 B NetworkLobbyManager 286 B ActivationPlayableAsset 286 B AnimationPlayableAsset 286 B BasicPlayableBehaviour 285 B BasicPlayableBehaviour 285 B BasicPlayableBehaviour 285 B AnimationPlayableAsset 285 B NetworkLobbyPlayer 285 B NetworkLobbyPlayer 285 B NetworkManagerHUD 284 B NetworkManagerHUD 284 B ControlPlayableAsset 283 B NetworkDiscovery 283 B ControlPlayableAsset 283 B NetworkTransform 283 B NetworkBehaviour 283 B NetworkTransform 283 B NetworkBehaviour 283 B NetworkDiscovery 283 B StandaloneInputModule 282 B StandaloneInputModule 282 B AudioPlayableAsset 281 B AudioPlayableAsset 281 B Physics2DRaycaster 279 B PointerInputModule 279 B PointerInputModule 279 B Physics2DRaycaster 279 B PhysicsRaycaster 277 B PhysicsRaycaster 277 B TouchInputModule 277 B TouchInputModule 277 B HorizontalOrVerticalLayoutGroup 267 B HorizontalOrVerticalLayoutGroup 267 B NetworkManager 266 B NetworkAnimator 266 B NetworkAnimator 266 B NetworkManager 266 B NetworkIdentity 266 B NetworkIdentity 266 B ControlTrack 262 B GroupTrack 262 B ActivationTrack 262 B TrackAsset 262 B ControlTrack 262 B AnimationTrack 262 B AudioTrack 262 B ActivationTrack 262 B PlayableTrack 262 B GroupTrack 262 B AudioTrack 262 B TimelineAsset 262 B AnimationTrack 262 B PlayableTrack 262 B TrackAsset 262 B TimelineAsset 262 B UIBehaviour 260 B BaseRaycaster 260 B EventSystem 260 B BaseInputModule 260 B EventTrigger 260 B EventSystem 260 B BaseInput 260 B UIBehaviour 260 B EventTrigger 260 B BaseInputModule 260 B BaseRaycaster 260 B BaseInput 260 B HorizontalLayoutGroup 257 B HorizontalLayoutGroup 257 B VerticalLayoutGroup 255 B VerticalLayoutGroup 255 B ContentSizeFitter 253 B AspectRatioFitter 253 B AspectRatioFitter 253 B ContentSizeFitter 253 B GraphicRaycaster 252 B GraphicRaycaster 252 B BaseMeshEffect 235 B RectMask2D 235 B ScrollRect 235 B Image 235 B Outline 235 B GridLayoutGroup 235 B Dropdown 235 B CanvasScaler 235 B ToggleGroup 235 B Text 235 B Selectable 235 B Scrollbar 235 B Scrollbar 235 B Selectable 235 B ToggleGroup 235 B RawImage 235 B BaseMeshEffect 235 B InputField 235 B GridLayoutGroup 235 B PositionAsUV1 235 B Shadow 235 B MaskableGraphic 235 B RectMask2D 235 B InputField 235 B Text 235 B Shadow 235 B Outline 235 B Button 235 B Slider 235 B MaskableGraphic 235 B Toggle 235 B LayoutGroup 235 B ScrollRect 235 B CanvasScaler 235 B Slider 235 B Graphic 235 B Mask 235 B Image 235 B PositionAsUV1 235 B LayoutElement 235 B LayoutGroup 235 B Dropdown 235 B LayoutElement 235 B Graphic 235 B RawImage 235 B Mask 235 B Toggle 235 B Button 235 B Shader (7) 11.7 KB Hidden/Internal-GUIRoundedRect 2.0 KB Hidden/Internal-GUITextureClip 1.8 KB Sprites/Default 1.7 KB Hidden/Internal-GUITexture 1.7 KB Sprites/Mask 1.7 KB Hidden/BlitCopy 1.4 KB Hidden/Internal-MotionVectors 1.3 KB BuildSettings (1) 8.2 KB BuildSettings 8.2 KB InputManager (1) 7.9 KB InputManager 7.9 KB MonoManager (1) 7.5 KB MonoManager 7.5 KB ScriptMapper (1) 5.7 KB ScriptMapper 5.7 KB Material (1) 1.7 KB Sprites-Default 1.7 KB NavMeshProjectSettings (1) 1.4 KB NavMeshProjectSettings 1.4 KB TagManager (1) 1.3 KB TagManager 1.3 KB QualitySettings (1) 1.0 KB QualitySettings 1.0 KB PlayerSettings (1) 1.0 KB PlayerSettings 1.0 KB VFXManager (1) 0.9 KB VFXManager 0.9 KB UnityConnectSettings (1) 0.6 KB UnityConnectSettings 0.6 KB RuntimeInitializeOnLoadManager (1) 0.5 KB RuntimeInitializeOnLoadManager 0.5 KB PhysicsManager (1) 408 B PhysicsManager 408 B Physics2DSettings (1) 404 B Physics2DSettings 404 B GraphicsSettings (1) 384 B GraphicsSettings 384 B TimeManager (1) 272 B TimeManager 272 B PreloadData (2) 204 B 102 B 92 B ResourceManager (1) 104 B ResourceManager 104 B DelayedCallManager (1) 76 B DelayedCallManager 76 B StreamingManager (1) 52 B StreamingManager 52 B Not Saved (27) 65.6 KB Texture2D (13) 57.4 KB UnityNHxRoughness 32.3 KB UnityHalo 8.3 KB UnityGrayscaleRamp 4.3 KB UnityAttenuation 4.3 KB UnityRandomRotation 2.3 KB UnityDefault2D 2.3 KB UnityDitherMask2D 0.8 KB UnityRed 492 B UnityBlack 452 B UnityGrey 452 B UnityWhite 452 B UnityNormalMap 452 B UnityLinearGrey 452 B Material (6) 6.7 KB Sprites/Mask 1.4 KB Hidden/Internal-GUITexture 1.2 KB Hidden/Internal-GUIRoundedRect 1.1 KB Hidden/BlitCopy 1.1 KB Hidden/Internal-GUITexture 1.1 KB 0.8 KB Cubemap (2) 0.8 KB UnityBlackCube 384 B UnityDefaultCube 384 B Transform (1) 368 B InternalIdentityTransform 368 B Texture3D (2) 260 B UnityDitherMask3D 256 B UnityDefault3D 4 B GameObject (1) 108 B InternalIdentityTransform 108 B CubemapArray (1) 24 B UnityDefaultCubeArray 24 B Texture2DArray (1) 4 B UnityDefault2DArray 4 B Builtin Resources (9) 28.6 KB Texture2D (2) 25.7 KB Soft 21.6 KB UnityWatermark-dev 4.1 KB MonoScript (6) 1.6 KB VisualTreeAsset 285 B TemplateAsset 285 B StyleSheet 274 B TileBase 267 B Tile 267 B GUISkin 244 B Shader (1) 1.3 KB Hidden/InternalErrorShader 1.3 KB Scene Memory (8) 4.8KB Camera (1) 3.3 KB Main Camera 3.3 KB RenderSettings (1) 444 B RenderSettings 444 B Transform (1) 368 B Main Camera 368 B LightmapSettings (1) 264 B LightmapSettings 264 B AudioListener (1) 184 B Main Camera 184 B GameObject 124 B Main Camera 124 B OcclusionCullingSettings (1) 112 B OcclusionCullingSettings 112 B NavMeshSettings (1) 48 B NavMeshSettings 48 B
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Test1 : MonoBehaviour { public byte[] byteArray1; public byte[] byteArray2; public byte[] byteArray3; void Start() { } void Update() { } private void OnGUI() { if (GUI.Button(new Rect(0, 0, 200, 100), "分配第1个数组")) { byteArray1 = new byte[100000000]; } if (GUI.Button(new Rect(0, 100, 200, 100), "分配第2个数组")) { byteArray2 = new byte[100000000]; } if (GUI.Button(new Rect(0, 200, 200, 100), "分配第3个数组")) { byteArray3 = new byte[100000000]; } if (GUI.Button(new Rect(0, 300, 200, 100), "GC")) { byteArray1 = null; byteArray2 = null; byteArray3 = null; System.GC.Collect(); } } }
空包周期性GC
加载一个复杂的prefab
Debug
各种计算