/// <summary>
        /// Gets the human-readable string that represents the name of the memory category.
        /// </summary>
        /// <param name="kind">The memory category.</param>
        /// <returns>
        /// The human-readable string that represents the name of the memory category, or empty if
        /// the parameter is invalid.
        /// </returns>
        public static string GetResourceUsageName(TUResourceUsageKind kind)
        {
            var cString = NativeMethods.clang_getTUResourceUsageName(
                (CXTUResourceUsageKind)kind);

            return(Marshal.PtrToStringAnsi(new IntPtr(cString)));
        }
 internal TUResourceUsageEntry(TUResourceUsageKind kind, ulong amount)
 {
     Kind   = kind;
     Amount = amount;
 }