Пример #1
0
 /// <summary>
 /// This method is a helper function to quickly create dynamic stream
 /// descriptions needed to register a new dynamic stream. The
 /// descriptions contains information about the stream's name, layout,
 /// and operations.
 /// </summary>
 /// <param name="name">A friendly name of the new stream (e.g.,
 ///     "Filtered memory accesses").</param>
 /// <param name="entrySize">The size of a single trace entry in bytes.
 ///     Variable-sized entries are not supported.</param>
 /// <param name="flags">Supplies the flags used for the type of the
 ///     new stream.</param>
 /// <param name="userData">A pointer to optional user-defined data that
 ///     should be available when the stream is opened. The data must
 ///     not be freed for the lifetime of the stream.</param>
 /// <param name="operations">Pointer to a set of operations that
 ///     implement the logic of the dynamic stream.</param>
 /// <param name="descOut">Pointer to a DynamicStreamDescriptor
 ///     structure that will receive the new stream information.</param>
 /// <returns>true if successful, false otherwise. For a more
 ///     detailed error description call StGetLastError().</returns>
 public static bool StMakeStreamDescriptorDynamic(string name,
                                                  uint entrySize, StreamTypeFlags flags, IntPtr userData,
                                                  ref DynamicStreamOperations operations,
                                                  out DynamicStreamDescriptor descOut)
 {
     return(NativeMethods.StMakeStreamDescriptorDynamic(name,
                                                        entrySize, flags, userData, ref operations, out descOut));
 }
Пример #2
0
 public static extern bool StMakeStreamDescriptorDynamic(string name,
                                                         uint entrySize, StreamTypeFlags flags, IntPtr userData,
                                                         ref DynamicStreamOperations operations,
                                                         out DynamicStreamDescriptor descOut);
Пример #3
0
        /* Stream API */

        /// <summary>
        /// This method is a helper function to quickly create a new stream
        /// description needed to register a new stream. The description
        /// contains information about the stream's name and layout of trace
        /// entries, that is records written to or read from a stream.
        /// </summary>
        /// <param name="name">A friendly name of the new stream (e.g.,
        ///     "CPU Memory Accesses")</param>
        /// <param name="entrySize">The size of a single trace entry in bytes.
        ///     To specify a variable-sized entry type, use
        ///     makeVariableEntrySize().</param>
        /// <param name="flags">Supplies the flags used for the type of the new
        ///     stream.</param>
        /// <param name="descOut">StreamDescriptor structure that will
        ///     receive the new stream information.</param>
        /// <returns>true if successful, false otherwise. For a more
        ///     detailed error description call StGetLastError().</returns>
        public static bool StMakeStreamDescriptor(string name,
                                                  uint entrySize, StreamTypeFlags flags, out StreamDescriptor descOut)
        {
            return(NativeMethods.StMakeStreamDescriptor(name, entrySize,
                                                        flags, out descOut));
        }
Пример #4
0
 public static extern bool StMakeStreamDescriptor(string name,
                                                  uint entrySize, StreamTypeFlags flags,
                                                  out StreamDescriptor descOut);