| File: Contracts\IStressLog.cs | Web Access |
| Project: src\runtime\src\native\managed\cdac\Microsoft.Diagnostics.DataContractReader.Abstractions\Microsoft.Diagnostics.DataContractReader.Abstractions.csproj (Microsoft.Diagnostics.DataContractReader.Abstractions) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; namespace Microsoft.Diagnostics.DataContractReader.Contracts; public record struct StressLogData( uint LoggedFacilities, uint Level, uint MaxSizePerThread, uint MaxSizeTotal, int TotalChunks, ulong TickFrequency, ulong StartTimestamp, ulong StartTime, TargetPointer Logs); public record struct ThreadStressLogData( TargetPointer Address, ulong ThreadId, bool WriteHasWrapped); public record struct StressMsgData( uint Facility, TargetPointer FormatString, ulong Timestamp, IReadOnlyList<TargetPointer> Args); public record struct StressLogMemoryRange( TargetPointer Start, ulong Size); public interface IStressLog : IContract { static string IContract.Name { get; } = nameof(StressLog); bool HasStressLog() => throw new NotImplementedException(); StressLogData GetStressLogData() => throw new NotImplementedException(); StressLogData GetStressLogData(TargetPointer stressLog) => throw new NotImplementedException(); IEnumerable<ThreadStressLogData> GetThreadStressLogs(TargetPointer Logs) => throw new NotImplementedException(); IEnumerable<StressMsgData> GetStressMessages(TargetPointer threadStressLogAddress) => throw new NotImplementedException(); bool IsPointerInStressLog(StressLogData stressLog, TargetPointer pointer) => throw new NotImplementedException(); IEnumerable<StressLogMemoryRange> GetStressLogMemoryRanges(StressLogData stressLog) => throw new NotImplementedException(); } public readonly struct StressLog : IStressLog { // Everything throws NotImplementedException }