public TraceElementHeader(TraceElementHeader header) { header.RawTypeIndex = RawTypeIndex; header.Length = Length; header.WallTime = WallTime; header.InstructionCount = InstructionCount; }
public static PerfElement Generate(TraceElementHeader header, BinaryReader reader) { var element = new PerfElement(header) { MemPages = reader.ReadUInt32() }; return(element); }
public static ReturnElement Generate(TraceElementHeader header, BinaryReader reader) { var element = new ReturnElement(header) { Eip = reader.ReadUInt32(), ToEip = reader.ReadUInt32(), Esp = reader.ReadUInt32() }; return(element); }
public static TraceElementHeader Generate(BinaryReader reader) { var traceElementHeader = new TraceElementHeader { RawTypeIndex = reader.ReadUInt32(), Length = reader.ReadUInt32(), WallTime = reader.ReadDouble(), InstructionCount = (int)reader.ReadUInt64() }; return(traceElementHeader); }
//private static readonly string[] s_BranchTypeNames = //{ // "Call", // "Return", // "Jump", // "Conditional (not taken)", // "Conditional (taken)", //}; public static BranchElement Generate(TraceElementHeader header, BinaryReader reader) { var branchElement = new BranchElement(header) { BranchType = reader.ReadUInt32(), Eip = reader.ReadUInt32(), ToEip = reader.ReadUInt32() }; branchElement.BranchTypeName = (BranchTypes)branchElement.BranchType; return(branchElement); }
public static InstructionDisasmElement Generate(TraceElementHeader header, BinaryReader reader) { uint bytesReadSoFar = 0; var instructionDisasmElement = new InstructionDisasmElement(header); //bytesReadSoFar += TraceElementHeader.SizeInBytes; instructionDisasmElement.Eip = reader.ReadUInt32(); bytesReadSoFar += sizeof(UInt32); instructionDisasmElement.Disassembly = instructionDisasmElement.ReadToLength(reader, bytesReadSoFar); return(instructionDisasmElement); }
public static InstructionOnlyElement Generate(TraceElementHeader header, BinaryReader reader) { uint bytesReadSoFar = 0; var instructionElement = new InstructionOnlyElement(header); //bytesReadSoFar += TraceElementHeader.SizeInBytes; instructionElement.Eip = reader.ReadUInt32(); bytesReadSoFar += sizeof(UInt32); instructionElement.ByteString = instructionElement.ReadToLength(reader, bytesReadSoFar, ReadToLengthFormat.Hex); return(instructionElement); }
public static TypeDeclarationElement Generate(TraceElementHeader header, BinaryReader reader) { uint bytesReadSoFar = 0; var element = new TypeDeclarationElement(header); //bytesReadSoFar += TraceElementHeader.SizeInBytes; element.ElementTypeIndex = reader.ReadUInt32(); bytesReadSoFar += sizeof(UInt32); element.ElementTypeStringIdentifier = element.ReadToLength(reader, bytesReadSoFar); return(element); }
public static InstructionRegsDisasmElement Generate(TraceElementHeader header, BinaryReader reader) { uint bytesReadSoFar = 0; var instructionRegsDisasmElement = new InstructionRegsDisasmElement(header); //bytesReadSoFar += TraceElementHeader.SizeInBytes; instructionRegsDisasmElement.Regs = TraceElementRegs.Generate(reader); bytesReadSoFar += TraceElementRegs.SizeInBytes; instructionRegsDisasmElement.Disassembly = instructionRegsDisasmElement.ReadToLength(reader, bytesReadSoFar); return(instructionRegsDisasmElement); }
//public int InstructionIndex { get; set; } public static AnnotationElement Generate(TraceElementHeader header, BinaryReader reader) { var annotationElement = new AnnotationElement(header); uint bytesReadSoFar = 0; var eventCharacters = (int)reader.ReadUInt32(); bytesReadSoFar += sizeof(UInt32); //bytesReadSoFar += TraceElementHeader.SizeInBytes; var descString = annotationElement.ReadToLength(reader, bytesReadSoFar); annotationElement.EventType = descString.Substring(0, eventCharacters); annotationElement.ByteString = descString.Substring(eventCharacters); return(annotationElement); }
public PerfElement(TraceElementHeader header) : base(header) { }
public TypeDeclarationElement(TraceElementHeader header) : base(header) { }
public InstructionRegsDisasmElement(TraceElementHeader header) : base(header) { }
public AnnotationElement(TraceElementHeader header, string elementType, string byteString) : base(header) { ByteString = byteString; EventType = elementType; }
public AnnotationElement(TraceElementHeader header) : base(header) { }
public CallElement(TraceElementHeader header) : base(header) { }
public ReturnElement(TraceElementHeader header) : base(header) { }
public InstructionOnlyElement(TraceElementHeader header) : base(header) { }
protected TraceElement(TraceElementHeader header) { Header = header; }
public BranchElement(TraceElementHeader header) : base(header) { }
protected InstructionElement(TraceElementHeader header) : base(header) { }
public InstructionDisasmSchemaElement(TraceElementHeader header) : base(header) { Disassembly = "schema"; }