Class Profiler
Assembly: UnityEngine.dll
Syntax
[MovedFrom("UnityEngine")]
public sealed class Profiler
Properties
|
Improve this Doc
View Source
areaCount
Declaration
public static int areaCount { get; }
Property Value
enableBinaryLog
Declaration
public static bool enableBinaryLog { get; set; }
Property Value
enabled
Declaration
public static bool enabled { get; set; }
Property Value
logFile
Declaration
public static string logFile { get; set; }
Property Value
|
Improve this Doc
View Source
maxNumberOfSamplesPerFrame
Declaration
[Obsolete("maxNumberOfSamplesPerFrame has been depricated. Use maxUsedMemory instead")]
public static int maxNumberOfSamplesPerFrame { get; set; }
Property Value
maxUsedMemory
Declaration
public static int maxUsedMemory { get; set; }
Property Value
supported
Declaration
public static bool supported { get; }
Property Value
|
Improve this Doc
View Source
usedHeapSize
Declaration
[Obsolete("usedHeapSize has been deprecated since it is limited to 4GB. Please use usedHeapSizeLong instead.")]
public static uint usedHeapSize { get; }
Property Value
usedHeapSizeLong
Declaration
public static long usedHeapSizeLong { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddFramesFromFile(String)
Declaration
[Conditional("UNITY_EDITOR")]
public static void AddFramesFromFile(string file)
Parameters
Type |
Name |
Description |
String |
file |
|
|
Improve this Doc
View Source
BeginSample(String)
Declaration
[Conditional("ENABLE_PROFILER")]
public static void BeginSample(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
|
Improve this Doc
View Source
BeginSample(String, Object)
Declaration
[Conditional("ENABLE_PROFILER")]
public static void BeginSample(string name, Object targetObject)
Parameters
|
Improve this Doc
View Source
BeginThreadProfiling(String, String)
Declaration
[Conditional("ENABLE_PROFILER")]
public static void BeginThreadProfiling(string threadGroupName, string threadName)
Parameters
Type |
Name |
Description |
String |
threadGroupName |
|
String |
threadName |
|
EndSample()
Declaration
[Conditional("ENABLE_PROFILER")]
public static void EndSample()
EndThreadProfiling()
Declaration
public static void EndThreadProfiling()
GetAllocatedMemoryForGraphicsDriver()
Declaration
public static long GetAllocatedMemoryForGraphicsDriver()
Returns
GetAreaEnabled(ProfilerArea)
Declaration
public static bool GetAreaEnabled(ProfilerArea area)
Parameters
Returns
|
Improve this Doc
View Source
GetMonoHeapSize()
Declaration
[Obsolete("GetMonoHeapSize has been deprecated since it is limited to 4GB. Please use GetMonoHeapSizeLong() instead.")]
public static uint GetMonoHeapSize()
Returns
GetMonoHeapSizeLong()
Declaration
public static long GetMonoHeapSizeLong()
Returns
|
Improve this Doc
View Source
GetMonoUsedSize()
Declaration
[Obsolete("GetMonoUsedSize has been deprecated since it is limited to 4GB. Please use GetMonoUsedSizeLong() instead.")]
public static uint GetMonoUsedSize()
Returns
GetMonoUsedSizeLong()
Declaration
public static long GetMonoUsedSizeLong()
Returns
|
Improve this Doc
View Source
GetRuntimeMemorySize(Object)
Declaration
[Obsolete("GetRuntimeMemorySize has been deprecated since it is limited to 2GB. Please use GetRuntimeMemorySizeLong() instead.")]
public static int GetRuntimeMemorySize(Object o)
Parameters
Type |
Name |
Description |
Object |
o |
|
Returns
GetRuntimeMemorySizeLong(Object)
Declaration
public static long GetRuntimeMemorySizeLong(Object o)
Parameters
Type |
Name |
Description |
Object |
o |
|
Returns
GetTempAllocatorSize()
Declaration
public static uint GetTempAllocatorSize()
Returns
|
Improve this Doc
View Source
GetTotalAllocatedMemory()
Declaration
[Obsolete("GetTotalAllocatedMemory has been deprecated since it is limited to 4GB. Please use GetTotalAllocatedMemoryLong() instead.")]
public static uint GetTotalAllocatedMemory()
Returns
GetTotalAllocatedMemoryLong()
Declaration
public static long GetTotalAllocatedMemoryLong()
Returns
|
Improve this Doc
View Source
GetTotalReservedMemory()
Declaration
[Obsolete("GetTotalReservedMemory has been deprecated since it is limited to 4GB. Please use GetTotalReservedMemoryLong() instead.")]
public static uint GetTotalReservedMemory()
Returns
GetTotalReservedMemoryLong()
Declaration
public static long GetTotalReservedMemoryLong()
Returns
|
Improve this Doc
View Source
GetTotalUnusedReservedMemory()
Declaration
[Obsolete("GetTotalUnusedReservedMemory has been deprecated since it is limited to 4GB. Please use GetTotalUnusedReservedMemoryLong() instead.")]
public static uint GetTotalUnusedReservedMemory()
Returns
GetTotalUnusedReservedMemoryLong()
Declaration
public static long GetTotalUnusedReservedMemoryLong()
Returns
SetAreaEnabled(ProfilerArea, Boolean)
Declaration
[Conditional("ENABLE_PROFILER")]
public static void SetAreaEnabled(ProfilerArea area, bool enabled)
Parameters
SetTempAllocatorRequestedSize(UInt32)
Declaration
public static bool SetTempAllocatorRequestedSize(uint size)
Parameters
Type |
Name |
Description |
UInt32 |
size |
|
Returns
Extension Methods