Lines Matching refs:buffer_pos

2794 static int utoa_impl(T value, const Vector<char>& buffer, int buffer_pos) {  in utoa_impl()  argument
2802 buffer_pos += number_of_digits; in utoa_impl()
2803 int result = buffer_pos; in utoa_impl()
2806 buffer[--buffer_pos] = '0' + last_digit; in utoa_impl()
2814 static int utoa(T value, const Vector<char>& buffer, int buffer_pos) { in utoa() argument
2817 return utoa_impl(unsigned_value, buffer, buffer_pos); in utoa()
2830 int buffer_pos = 0; in SerializeEdge() local
2832 buffer[buffer_pos++] = ','; in SerializeEdge()
2834 buffer_pos = utoa(edge->type(), buffer, buffer_pos); in SerializeEdge()
2835 buffer[buffer_pos++] = ','; in SerializeEdge()
2836 buffer_pos = utoa(edge_name_or_index, buffer, buffer_pos); in SerializeEdge()
2837 buffer[buffer_pos++] = ','; in SerializeEdge()
2838 buffer_pos = utoa(entry_index(edge->to()), buffer, buffer_pos); in SerializeEdge()
2839 buffer[buffer_pos++] = '\n'; in SerializeEdge()
2840 buffer[buffer_pos++] = '\0'; in SerializeEdge()
2863 int buffer_pos = 0; in SerializeNode() local
2865 buffer[buffer_pos++] = ','; in SerializeNode()
2867 buffer_pos = utoa(entry->type(), buffer, buffer_pos); in SerializeNode()
2868 buffer[buffer_pos++] = ','; in SerializeNode()
2869 buffer_pos = utoa(GetStringId(entry->name()), buffer, buffer_pos); in SerializeNode()
2870 buffer[buffer_pos++] = ','; in SerializeNode()
2871 buffer_pos = utoa(entry->id(), buffer, buffer_pos); in SerializeNode()
2872 buffer[buffer_pos++] = ','; in SerializeNode()
2873 buffer_pos = utoa(entry->self_size(), buffer, buffer_pos); in SerializeNode()
2874 buffer[buffer_pos++] = ','; in SerializeNode()
2875 buffer_pos = utoa(entry->children_count(), buffer, buffer_pos); in SerializeNode()
2876 buffer[buffer_pos++] = ','; in SerializeNode()
2877 buffer_pos = utoa(entry->trace_node_id(), buffer, buffer_pos); in SerializeNode()
2878 buffer[buffer_pos++] = '\n'; in SerializeNode()
2879 buffer[buffer_pos++] = '\0'; in SerializeNode()
3000 int buffer_pos = 0; in SerializeTraceNode() local
3001 buffer_pos = utoa(node->id(), buffer, buffer_pos); in SerializeTraceNode()
3002 buffer[buffer_pos++] = ','; in SerializeTraceNode()
3003 buffer_pos = utoa(node->function_info_index(), buffer, buffer_pos); in SerializeTraceNode()
3004 buffer[buffer_pos++] = ','; in SerializeTraceNode()
3005 buffer_pos = utoa(node->allocation_count(), buffer, buffer_pos); in SerializeTraceNode()
3006 buffer[buffer_pos++] = ','; in SerializeTraceNode()
3007 buffer_pos = utoa(node->allocation_size(), buffer, buffer_pos); in SerializeTraceNode()
3008 buffer[buffer_pos++] = ','; in SerializeTraceNode()
3009 buffer[buffer_pos++] = '['; in SerializeTraceNode()
3010 buffer[buffer_pos++] = '\0'; in SerializeTraceNode()
3026 int buffer_pos) { in SerializePosition() argument
3028 buffer[buffer_pos++] = '0'; in SerializePosition()
3031 buffer_pos = utoa(static_cast<unsigned>(position + 1), buffer, buffer_pos); in SerializePosition()
3033 return buffer_pos; in SerializePosition()
3049 int buffer_pos = 0; in SerializeTraceNodeInfos() local
3051 buffer[buffer_pos++] = ','; in SerializeTraceNodeInfos()
3053 buffer_pos = utoa(info->function_id, buffer, buffer_pos); in SerializeTraceNodeInfos()
3054 buffer[buffer_pos++] = ','; in SerializeTraceNodeInfos()
3055 buffer_pos = utoa(GetStringId(info->name), buffer, buffer_pos); in SerializeTraceNodeInfos()
3056 buffer[buffer_pos++] = ','; in SerializeTraceNodeInfos()
3057 buffer_pos = utoa(GetStringId(info->script_name), buffer, buffer_pos); in SerializeTraceNodeInfos()
3058 buffer[buffer_pos++] = ','; in SerializeTraceNodeInfos()
3060 buffer_pos = utoa(static_cast<unsigned>(info->script_id), buffer, in SerializeTraceNodeInfos()
3061 buffer_pos); in SerializeTraceNodeInfos()
3062 buffer[buffer_pos++] = ','; in SerializeTraceNodeInfos()
3063 buffer_pos = SerializePosition(info->line, buffer, buffer_pos); in SerializeTraceNodeInfos()
3064 buffer[buffer_pos++] = ','; in SerializeTraceNodeInfos()
3065 buffer_pos = SerializePosition(info->column, buffer, buffer_pos); in SerializeTraceNodeInfos()
3066 buffer[buffer_pos++] = '\n'; in SerializeTraceNodeInfos()
3067 buffer[buffer_pos++] = '\0'; in SerializeTraceNodeInfos()
3086 int buffer_pos = 0; in SerializeSamples() local
3088 buffer[buffer_pos++] = ','; in SerializeSamples()
3091 buffer_pos = utoa(time_delta.InMicroseconds(), buffer, buffer_pos); in SerializeSamples()
3092 buffer[buffer_pos++] = ','; in SerializeSamples()
3093 buffer_pos = utoa(sample.last_assigned_id(), buffer, buffer_pos); in SerializeSamples()
3094 buffer[buffer_pos++] = '\n'; in SerializeSamples()
3095 buffer[buffer_pos++] = '\0'; in SerializeSamples()