diff options
author | Alex Rønne Petersen <alexrp@xamarin.com> | 2017-07-08 06:53:16 +0300 |
---|---|---|
committer | Alex Rønne Petersen <alexrp@xamarin.com> | 2017-07-09 04:16:03 +0300 |
commit | f8ca228b2e781a5f54c68fa1b85d7eabfc4fd098 (patch) | |
tree | ba3ded39c92f1a49c7d0d1df5e3066a1fbc5ee38 /mcs/class/Mono.Profiler.Log | |
parent | 57239e923f3f5942d62e058d7fe4dc01f67c0735 (diff) |
[profiler] Remove the type field from TYPE_SAMPLE_HIT.
It's unlikely that we'll add support for other kinds of sampling in the future
as we've dropped support for perf on Linux.
Diffstat (limited to 'mcs/class/Mono.Profiler.Log')
3 files changed, 0 insertions, 13 deletions
diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs index f9a125b5d16..f34cafe07e0 100644 --- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs +++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs @@ -138,16 +138,6 @@ namespace Mono.Profiler.Log { ExceptionHandling = 10, } - // mono/profiler/log.h : SAMPLE_* - public enum LogSampleHitType { - Cycles = 1, - Instructions = 2, - CacheMisses = 3, - CacheHits = 4, - Branches = 5, - BranchMisses = 6, - } - // mono/metadata/profiler.h : MonoProfilerGCRootType [Flags] public enum LogHeapRootAttributes { diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEvents.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEvents.cs index 248863e6066..8bdd5d7ab59 100644 --- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEvents.cs +++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEvents.cs @@ -443,8 +443,6 @@ namespace Mono.Profiler.Log { public sealed class SampleHitEvent : LogEvent { - public LogSampleHitType Type { get; internal set; } - public long ThreadId { get; internal set; } public IReadOnlyList<long> UnmanagedBacktrace { get; internal set; } diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs index f57d4ef651d..09e5dca088f 100644 --- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs +++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs @@ -380,7 +380,6 @@ namespace Mono.Profiler.Log { switch (extType) { case LogEventType.SampleHit: return new SampleHitEvent { - Type = (LogSampleHitType) Reader.ReadByte (), ThreadId = ReadPointer (), UnmanagedBacktrace = ReadBacktrace (true, false), ManagedBacktrace = ReadBacktrace (true), |