using System;
using System.Collections;
using System.Threading;
namespace System.Diagnostics
{
/// Provides trace event data specific to a thread and a process.
/// 2
// Token: 0x020000FC RID: 252
public class TraceEventCache
{
/// Initializes a new instance of the class.
// Token: 0x060008EE RID: 2286 RVA: 0x0001740C File Offset: 0x0001560C
public TraceEventCache()
{
this.started = DateTime.Now;
this.manager = Trace.CorrelationManager;
this.callstack = Environment.StackTrace;
this.timestamp = Stopwatch.GetTimestamp();
this.thread = Thread.CurrentThread.Name;
this.process = Process.GetCurrentProcess().Id;
}
/// Gets the call stack for the current thread.
/// A string containing stack trace information. This value can be an empty string ("").
/// 2
///
///
///
///
// Token: 0x17000256 RID: 598
// (get) Token: 0x060008EF RID: 2287 RVA: 0x0001746C File Offset: 0x0001566C
public string Callstack
{
get
{
return this.callstack;
}
}
/// Gets the date and time at which the event trace occurred.
/// A structure whose value is a date and time expressed in Coordinated Universal Time (UTC).
/// 2
// Token: 0x17000257 RID: 599
// (get) Token: 0x060008F0 RID: 2288 RVA: 0x00017474 File Offset: 0x00015674
public DateTime DateTime
{
get
{
return this.started;
}
}
/// Gets the correlation data, contained in a stack.
/// A containing correlation data.
/// 1
// Token: 0x17000258 RID: 600
// (get) Token: 0x060008F1 RID: 2289 RVA: 0x0001747C File Offset: 0x0001567C
public Stack LogicalOperationStack
{
get
{
return this.manager.LogicalOperationStack;
}
}
/// Gets the unique identifier of the current process.
/// The system-generated unique identifier of the current process.
/// 2
///
///
///
// Token: 0x17000259 RID: 601
// (get) Token: 0x060008F2 RID: 2290 RVA: 0x0001748C File Offset: 0x0001568C
public int ProcessId
{
get
{
return this.process;
}
}
/// Gets a unique identifier for the current managed thread.
/// A string that represents a unique integer identifier for this managed thread.
/// 2
// Token: 0x1700025A RID: 602
// (get) Token: 0x060008F3 RID: 2291 RVA: 0x00017494 File Offset: 0x00015694
public string ThreadId
{
get
{
return this.thread;
}
}
/// Gets the current number of ticks in the timer mechanism.
/// The tick counter value of the underlying timer mechanism.
/// 2
// Token: 0x1700025B RID: 603
// (get) Token: 0x060008F4 RID: 2292 RVA: 0x0001749C File Offset: 0x0001569C
public long Timestamp
{
get
{
return this.timestamp;
}
}
// Token: 0x040002E4 RID: 740
private DateTime started;
// Token: 0x040002E5 RID: 741
private CorrelationManager manager;
// Token: 0x040002E6 RID: 742
private string callstack;
// Token: 0x040002E7 RID: 743
private string thread;
// Token: 0x040002E8 RID: 744
private int process;
// Token: 0x040002E9 RID: 745
private long timestamp;
}
}