Records

Functions

  • TracedValue CreateTracedValueFromProto (protos::pbzero::DebugAnnotation * , EventContext * )

    TODO(altimin): Currently EventContext can be null due the need to support

    TracedValue-based serialisation with the Chrome's TraceLog. After this is

    gone, the second parameter should be changed to EventContext

    &

    .

  • void WriteTrackEventArgs (EventContext )

    No arguments means that we don't have to write anything.

    Defined at line 29 of file ../../third_party/perfetto/include/perfetto/tracing/internal/write_track_event_args.h

  • template <size_t N>
    const char * GetStaticString (const char (&)[N] string)

    Defined at line 68 of file ../../third_party/perfetto/include/perfetto/tracing/string_helpers.h

  • std::nullptr_t GetStaticString (std::nullptr_t )

    Defined at line 72 of file ../../third_party/perfetto/include/perfetto/tracing/string_helpers.h

  • const char * GetStaticString (perfetto::StaticString string)

    Defined at line 76 of file ../../third_party/perfetto/include/perfetto/tracing/string_helpers.h

  • template <typename ArgumentFunction, typename ArgFunctionCheck = typename std::enable_if<
                                              IsValidTraceLambda<ArgumentFunction>()>::type>
    void WriteTrackEventArgs (EventContext event_ctx, const ArgumentFunction & arg_function)

    Write an old-style lambda taking an EventContext (without a reference)

    as it will consume EventContext via std::move, it can only be the last

    argument.

    Defined at line 102 of file ../../third_party/perfetto/include/perfetto/tracing/internal/write_track_event_args.h

  • template <typename ArgumentFunction, typename... Args, typename ArgFunctionCheck = typename std::enable_if<
                                              IsValidTraceLambdaTakingReference<ArgumentFunction>()>::type>
    void WriteTrackEventArgs (EventContext event_ctx, const ArgumentFunction & arg_function, Args &&... args)

    Defined at line 130 of file ../../third_party/perfetto/include/perfetto/tracing/internal/write_track_event_args.h

  • template <typename ArgValue, typename... Args>
    void WriteTrackEventArgs (EventContext event_ctx, const char * arg_name, ArgValue && arg_value, Args &&... args)

    Forward-declare the specification for writing untyped arguments to ensure

    that typed specification could recursively pick it up.

    Defined at line 167 of file ../../third_party/perfetto/include/perfetto/tracing/internal/write_track_event_args.h

  • template <typename FieldMetadataType, typename ArgValue, typename... Args, typename FieldMetadataTypeCheck = typename std::enable_if<
                                              IsFieldMetadataType<FieldMetadataType>()>::type>
    void WriteTrackEventArgs (EventContext event_ctx, FieldMetadataType field_name, ArgValue && arg_value, Args &&... args)

    Write one typed message and recursively write the rest of the arguments.

    Defined at line 146 of file ../../third_party/perfetto/include/perfetto/tracing/internal/write_track_event_args.h

  • ::perfetto::DynamicString DecayEventNameType (::perfetto::DynamicString name)

    Defined at line 170 of file ../../third_party/perfetto/include/perfetto/tracing/internal/track_event_data_source.h

  • const char * NullCategory (const char * )

    Defined at line 171 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

  • ::perfetto::StaticString DecayEventNameType (::perfetto::StaticString name)

    Defined at line 175 of file ../../third_party/perfetto/include/perfetto/tracing/internal/track_event_data_source.h

  • perfetto::DynamicCategory NullCategory (const perfetto::DynamicCategory & )
  • bool StringMatchesPrefix (const char * str, const char * prefix)

    Defined at line 177 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

  • template <typename ArgValue, typename... Args>
    void WriteTrackEventArgs (EventContext event_ctx, DynamicString arg_name, ArgValue && arg_value, Args &&... args)

    Write one debug annotation and recursively write the rest of the arguments.

    Defined at line 177 of file ../../third_party/perfetto/include/perfetto/tracing/internal/write_track_event_args.h

  • ::perfetto::StaticString DecayEventNameType (const char * name)

    Convert all static strings of different length to StaticString to avoid

    unnecessary template instantiations.

    Defined at line 182 of file ../../third_party/perfetto/include/perfetto/tracing/internal/track_event_data_source.h

  • bool IsStringInPrefixList (const char * )

    Defined at line 184 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

  • template <typename... Args>
    bool IsStringInPrefixList (const char * str, const char * prefix, Args... args)

    Defined at line 189 of file ../../third_party/perfetto/include/perfetto/tracing/track_event_category_registry.h

  • template <typename MessageType, typename T>
    decltype(TraceFormatTraits<base::remove_cvref_t<T>>::WriteIntoTrace(std::declval<TracedProto<MessageType>>(), std::declval<T>()) , void()) WriteIntoTracedProtoImpl (base::priority_tag<1> , TracedProto<MessageType> message, T && value)

    If perfetto::TraceFormatTraits

    <T

    >::WriteIntoTrace(TracedProto

    <MessageType

    >,

    T) is available, use it.

    Defined at line 297 of file ../../third_party/perfetto/include/perfetto/tracing/traced_proto.h

  • template <typename MessageType, typename T>
    decltype(std::declval<T>().WriteIntoTrace(std::declval<TracedProto<MessageType>>()) , void()) WriteIntoTracedProtoImpl (base::priority_tag<0> , TracedProto<MessageType> message, T && value)

    If T has WriteIntoTrace(TracedProto

    <MessageType

    >) method, use it.

    Defined at line 310 of file ../../third_party/perfetto/include/perfetto/tracing/traced_proto.h

  • template <typename T>
    decltype(std::declval<T>().WriteIntoTracedValue(std::declval<TracedValue>()) , void()) WriteImpl (base::priority_tag<4> , TracedValue context, T && value)

    If T has WriteIntoTracedValue member function, call it.

    Defined at line 334 of file ../../third_party/perfetto/include/perfetto/tracing/traced_value.h

  • template <typename T>
    decltype(TraceFormatTraits<base::remove_cvref_t<T>>::WriteIntoTracedValue(std::declval<TracedValue>(), std::declval<T>()) , void()) WriteImpl (base::priority_tag<3> , TracedValue context, T && value)

    If perfetto::TraceFormatTraits

    <T

    >::WriteIntoTracedValue(TracedValue, const

    T

    &

    ) is available, use it.

    Defined at line 350 of file ../../third_party/perfetto/include/perfetto/tracing/traced_value.h

  • template <typename T>
    decltype(std::declval<T>()(std::declval<TracedValue>()) , void()) WriteImpl (base::priority_tag<2> , TracedValue context, T && value)

    If T has operator(), which takes TracedValue, use it.

    Very useful for lambda resolutions.

    Defined at line 374 of file ../../third_party/perfetto/include/perfetto/tracing/traced_value.h

  • template <typename T>
    typename check_traced_value_support<decltype(*std::begin(std::declval<T &>()))>::type WriteImpl (base::priority_tag<1> , TracedValue context, T && value)

    If T is a container and its elements have tracing support, use it.

    Note: a reference to T should be passed to std::begin, otherwise

    for non-reference types const T

    &

    will be passed to std::begin, losing

    support for non-const WriteIntoTracedValue methods.

    Defined at line 385 of file ../../third_party/perfetto/include/perfetto/tracing/traced_value.h

  • template <typename T>
    T PossiblyNull (T && value)

    Legacy macros allow argument values to be nullptr and convert them to the

    "NULL" string. The following function helps mimic this behavior: it forwards

    all types of arguments apart from a nullptr string as is, and in case of a

    nullptr returns "NULL".

    Defined at line 447 of file ../../third_party/perfetto/include/perfetto/tracing/internal/track_event_legacy.h

  • const char * PossiblyNull (const char * name)

    Defined at line 451 of file ../../third_party/perfetto/include/perfetto/tracing/internal/track_event_legacy.h

  • const char * PossiblyNull (char * name)

    Defined at line 455 of file ../../third_party/perfetto/include/perfetto/tracing/internal/track_event_legacy.h