53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace UA_RemoteProfiler
|
|
{
|
|
public class LoadingEvent
|
|
{
|
|
public enum Type
|
|
{
|
|
EndLoad,
|
|
Read,
|
|
CachedRead,
|
|
Compression,
|
|
Marker
|
|
}
|
|
|
|
public Type type;
|
|
public uint startFrame;
|
|
public uint endFrame;
|
|
public ulong offset;
|
|
public float readTime;
|
|
public uint readBytes;
|
|
public ulong fileSize;
|
|
|
|
public string text;
|
|
public string bundleName;
|
|
public uint threadId;
|
|
public string threadName;
|
|
|
|
public void ExtractFromBlob(blobWrapper blob)
|
|
{
|
|
uint eventType = 0;
|
|
blob.extract(ref eventType);
|
|
type = (Type)eventType;
|
|
|
|
blob.extract(ref startFrame);
|
|
blob.extract(ref readTime);
|
|
|
|
blob.extract(ref offset);
|
|
blob.extract(ref readBytes);
|
|
blob.extract(ref fileSize);
|
|
|
|
blob.extract(ref endFrame);
|
|
blob.extractString8(ref text);
|
|
blob.extractString8(ref bundleName);
|
|
|
|
blob.extract(ref threadId);
|
|
blob.extractString8(ref threadName);
|
|
}
|
|
}
|
|
}
|