DescriptionAdded support to trace_event for passing static string arguments without copy
Occasionally you want to add some static string to a trace, such as the __FILE__ string, but don't want the overhead of a allocation/copy. This change let's you specify those as argument values via a new TraceValue type. You specify const char* types to get the no-copy behavior. std::string types are always copied. To force a const char*, specify TRACE_STR_COPY(str).
TEST=trace_event_unittest.cc
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99763
Patch Set 1 #Patch Set 2 : added tests #
Total comments: 2
Patch Set 3 : . #
Total comments: 1
Patch Set 4 : . #Patch Set 5 : . #
Total comments: 4
Patch Set 6 : win compile #Patch Set 7 : fixed _COPY macros, win compile #Patch Set 8 : . #Patch Set 9 : more tests #Patch Set 10 : comments #
Total comments: 4
Patch Set 11 : . #
Messages
Total messages: 20 (0 generated)
|