50 строки
2.8 KiB
C#
50 строки
2.8 KiB
C#
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
namespace Microsoft.Performance.Toolkit.Plugins.PerfDataExtension
|
|
{
|
|
using System;
|
|
using System.Diagnostics;
|
|
|
|
internal static class Utility
|
|
{
|
|
public const int RawBytesMax = 256;
|
|
public const ushort FieldsMax = 20;
|
|
|
|
private static readonly Guid[] columnGuids = new Guid[FieldsMax] {
|
|
new Guid(0x6B900B4C,0xFC40,0x533E,0x54,0x56,0xAD,0x7A,0x8C,0xCC,0x88,0xD7), // "Field 1"
|
|
new Guid(0xEC47E183,0xD027,0x5557,0x33,0x3E,0x0B,0xC2,0x56,0xD7,0x10,0xCB), // "Field 2"
|
|
new Guid(0x154E6EF9,0x36FF,0x5437,0xE3,0x9D,0x1D,0xCC,0xAC,0xBE,0x45,0x5F), // "Field 3"
|
|
new Guid(0x8B95AD48,0x7C2D,0x569D,0xBB,0x1C,0x88,0xD9,0x6D,0x57,0x27,0xDB), // "Field 4"
|
|
new Guid(0x7E43112C,0x719F,0x5BD8,0x1D,0xF0,0xC5,0xD9,0xE1,0x45,0x70,0x9B), // "Field 5"
|
|
new Guid(0x7E13FFCB,0x1558,0x5B3A,0xE2,0x2D,0xE8,0x8A,0xF4,0x3D,0x1C,0xEE), // "Field 6"
|
|
new Guid(0x99FBD67A,0x9EE2,0x5B41,0x4F,0x5D,0x76,0xD3,0xF9,0x95,0x6A,0x77), // "Field 7"
|
|
new Guid(0xA74E3559,0x9A14,0x522E,0xEE,0x46,0xE3,0x1F,0xC3,0x66,0x5B,0x9A), // "Field 8"
|
|
new Guid(0x9847234F,0x451B,0x56F7,0xDD,0x5E,0x82,0x54,0x72,0xF9,0x83,0xC6), // "Field 9"
|
|
new Guid(0xD8076345,0x5ECC,0x5D4F,0xFB,0x37,0x55,0x5A,0xD1,0x54,0x56,0x46), // "Field 10"
|
|
new Guid(0x3D2D714E,0x144B,0x52F6,0x7F,0xBD,0x2F,0x8A,0xB3,0x04,0x7F,0xB4), // "Field 11"
|
|
new Guid(0x396A63B0,0xC105,0x5D30,0x78,0x51,0x8C,0xA5,0xF4,0x92,0xD9,0xD8), // "Field 12"
|
|
new Guid(0xAE23EF08,0xC1ED,0x5702,0x60,0xBA,0xE8,0x2E,0xA6,0x3B,0x0C,0x57), // "Field 13"
|
|
new Guid(0x6CE433AF,0x18AD,0x582C,0xA9,0x0E,0xE2,0xD5,0x17,0xA7,0xF3,0x0A), // "Field 14"
|
|
new Guid(0xA96B49B2,0x9C97,0x51FF,0x7C,0x54,0x9E,0x89,0xC4,0x77,0x2C,0x36), // "Field 15"
|
|
new Guid(0x2A506BEA,0xD31B,0x54AE,0x98,0x48,0x9A,0x5B,0x0A,0x4F,0xBC,0x82), // "Field 16"
|
|
new Guid(0xD3D6D369,0xF3C8,0x5687,0xA8,0xBB,0xA8,0x52,0x97,0x38,0xC3,0xD5), // "Field 17"
|
|
new Guid(0x466A4E5D,0xEDE2,0x5FA2,0x9F,0x4D,0x59,0x99,0x54,0x59,0xBE,0xBE), // "Field 18"
|
|
new Guid(0xFC6881EC,0x8F2E,0x591C,0xD7,0xCC,0x7A,0x9A,0xE2,0xC4,0x09,0x50), // "Field 19"
|
|
new Guid(0xA1FD965A,0x3F8A,0x5C8A,0x73,0x53,0x23,0x8A,0xE1,0x61,0x87,0x85), // "Field 20"
|
|
};
|
|
|
|
public static string GetColumnName(int index)
|
|
{
|
|
Debug.Assert(index >= 0 && index < FieldsMax);
|
|
return "Field " + (index + 1);
|
|
}
|
|
|
|
public static Guid GetColumnGuid(int index)
|
|
{
|
|
Debug.Assert(index >= 0 && index < FieldsMax);
|
|
return columnGuids[index];
|
|
}
|
|
}
|
|
}
|