string GetSourcePrefix(AssetMarkerType type) { switch (type) { case (AssetMarkerType.SyncLoadAsset): case (AssetMarkerType.AsyncLoadAsset): case (AssetMarkerType.SyncUnloadBundle): case (AssetMarkerType.AsyncUnloadBundle): case (AssetMarkerType.LoadBundle): return("AssetBundle: "); case (AssetMarkerType.LoadScene): return("Scene File: "); case (AssetMarkerType.LoadSceneObjects): case (AssetMarkerType.ReadObject): case (AssetMarkerType.SyncReadRequest): case (AssetMarkerType.AsyncReadRequest): return("File: "); default: return(""); } }
public void AddMarker(string markerName, AssetMarkerType markerType, MetaDataFiller metaDataFiller, int metadataCount) { m_Markers.Add(markerName, new AssetMarkerInfo(markerType, metaDataFiller, metadataCount)); m_MarkerToIDMap.Add(markerName, FrameDataView.invalidMarkerId); }
public AssetMarkerInfo(AssetMarkerType _assetMarkerType, MetaDataFiller _metadataFunction, int _metadataCount) { assetMarkerType = _assetMarkerType; metaDataFiller = _metadataFunction; metadataCount = _metadataCount; }