Home
last modified time | relevance | path

Searched refs:total_bytes (Results 1 – 25 of 40) sorted by relevance

12

/third_party/protobuf/benchmarks/php/
DPhpBenchmark.php50 private $total_bytes; variable in Google\\Protobuf\\Benchmark\\Benchmark
53 public function __construct($benchmark_name, $args, $total_bytes, argument
58 $this->total_bytes = $total_bytes;
65 return $this->total_bytes * $times /
104 $total_bytes = 0;
110 $total_bytes += strlen($payloads->offsetGet($i));
115 array($dataset, $message_name), $total_bytes);
118 $message_list, $total_bytes);
/third_party/protobuf/benchmarks/python/
Dpy_benchmark.py47 total_bytes = 0
49 total_bytes += len(payload)
53 total_bytes=total_bytes)
68 global benchmark_dataset, message_class, message_list, counter, total_bytes
71 total_bytes = 0
93 total_bytes += len(one_payload)
110 setup_method=None, total_bytes=None, full_iteration = 1): argument
115 self.total_bytes = total_bytes
141 return self.total_bytes * 1.0 / 2 ** 20 / (1.0 * t / reps * self.full_iteration)
/third_party/ltp/tools/sparse/sparse-src/
Dallocate.c57 desc->total_bytes = 0; in drop_all_allocations()
108 desc->total_bytes += chunking; in allocate()
127 x->name, x->allocations, x->useful_bytes, x->total_bytes, in show_allocations()
128 100 * (double) x->useful_bytes / x->total_bytes, in show_allocations()
137 s->total_bytes = x->total_bytes; in get_allocator_stats()
Dstats.c20 x.name, x.allocations, x.useful_bytes, x.total_bytes, in show_stats()
21 100 * (double) x.useful_bytes / (x.total_bytes ? : 1), in show_stats()
26 tot->total_bytes += x.total_bytes; in show_stats()
Dallocate.h20 unsigned long total_bytes, useful_bytes; member
26 unsigned long total_bytes, useful_bytes; member
/third_party/abseil-cpp/absl/strings/
Dstr_cat_benchmark.cc141 void BM_StrAppendImpl(benchmark::State& state, size_t total_bytes, in BM_StrAppendImpl() argument
145 while (result.size() < total_bytes) { in BM_StrAppendImpl()
153 const int total_bytes = state.range(0); in BM_StrAppend() local
159 return BM_StrAppendImpl(state, total_bytes, kChunk); in BM_StrAppend()
161 return BM_StrAppendImpl(state, total_bytes, kChunk, kChunk); in BM_StrAppend()
163 return BM_StrAppendImpl(state, total_bytes, kChunk, kChunk, kChunk, in BM_StrAppend()
166 return BM_StrAppendImpl(state, total_bytes, kChunk, kChunk, kChunk, in BM_StrAppend()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstr_cat_benchmark.cc141 void BM_StrAppendImpl(benchmark::State& state, size_t total_bytes, in BM_StrAppendImpl() argument
145 while (result.size() < total_bytes) { in BM_StrAppendImpl()
153 const int total_bytes = state.range(0); in BM_StrAppend() local
159 return BM_StrAppendImpl(state, total_bytes, kChunk); in BM_StrAppend()
161 return BM_StrAppendImpl(state, total_bytes, kChunk, kChunk); in BM_StrAppend()
163 return BM_StrAppendImpl(state, total_bytes, kChunk, kChunk, kChunk, in BM_StrAppend()
166 return BM_StrAppendImpl(state, total_bytes, kChunk, kChunk, kChunk, in BM_StrAppend()
/third_party/ltp/testcases/kernel/sched/sched_stress/
Dsched_tc6.c318 long total_bytes; in read_file() local
326 total_bytes = 0; in read_file()
334 total_bytes = total_bytes + bytes_read; in read_file()
340 printf("\r\ttotal bytes read = %ld", total_bytes); in read_file()
343 total_bytes = 0; in read_file()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv84_video_bsp.c94 unsigned total_bytes = 0; in nv84_decoder_bsp() local
193 assert(total_bytes + num_bytes[i] < dec->bitstream->size / 2 - 0x700); in nv84_decoder_bsp()
194 memcpy(dec->bitstream->map + 0x700 + total_bytes, data[i], num_bytes[i]); in nv84_decoder_bsp()
195 total_bytes += num_bytes[i]; in nv84_decoder_bsp()
197 memcpy(dec->bitstream->map + 0x700 + total_bytes, end, sizeof(end)); in nv84_decoder_bsp()
198 total_bytes += sizeof(end); in nv84_decoder_bsp()
199 more_params[1] = total_bytes; in nv84_decoder_bsp()
/third_party/gstreamer/gstplugins_good/gst/audioparsers/
Dgstmpegaudioparse.c843 gint64 total_bytes; in gst_mpeg_audio_parse_handle_first_frame() local
903 (total_bytes = mp3parse->xing_bytes)) { in gst_mpeg_audio_parse_handle_first_frame()
904 mp3parse->xing_bitrate = gst_util_uint64_scale (total_bytes, in gst_mpeg_audio_parse_handle_first_frame()
1011 gint64 total_bytes, total_frames; in gst_mpeg_audio_parse_handle_first_frame() local
1041 total_bytes = GST_READ_UINT32_BE (data); in gst_mpeg_audio_parse_handle_first_frame()
1042 if (total_bytes != 0) in gst_mpeg_audio_parse_handle_first_frame()
1043 mp3parse->vbri_bytes = total_bytes; in gst_mpeg_audio_parse_handle_first_frame()
1057 (total_bytes = mp3parse->vbri_bytes)) { in gst_mpeg_audio_parse_handle_first_frame()
1058 mp3parse->vbri_bitrate = gst_util_uint64_scale (total_bytes, in gst_mpeg_audio_parse_handle_first_frame()
1183 gint64 total_bytes; in gst_mpeg_audio_parse_time_to_bytepos() local
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/file/
DSDL_rwops.c240 size_t total_bytes; in windows_file_write() local
244 total_bytes = size * num; in windows_file_write()
247 || total_bytes <= 0 || !size) in windows_file_write()
267 (context->hidden.windowsio.h, ptr, (DWORD)total_bytes, &byte_written, NULL)) { in windows_file_write()
415 size_t total_bytes; in mem_read() local
418 total_bytes = (maxnum * size); in mem_read()
420 || ((total_bytes / maxnum) != (size_t) size)) { in mem_read()
425 if (total_bytes > mem_available) { in mem_read()
426 total_bytes = mem_available; in mem_read()
429 SDL_memcpy(ptr, context->hidden.mem.here, total_bytes); in mem_read()
[all …]
/third_party/ffmpeg/libavcodec/
Dlibvorbisdec.c156 int samples, total_samples, total_bytes; in oggvorbis_decode_frame() local
184 total_bytes = 0 ; in oggvorbis_decode_frame()
187 conv(samples, pcm, (char*)output + total_bytes, context->vi.channels) ; in oggvorbis_decode_frame()
188 total_bytes += samples * 2 * context->vi.channels ; in oggvorbis_decode_frame()
Dopus.c202 int total_bytes = 0; in ff_opus_parse_packet() local
208 total_bytes += frame_bytes; in ff_opus_parse_packet()
213 if (len < 0 || len + total_bytes + padding > end - ptr) in ff_opus_parse_packet()
215 end = ptr + total_bytes + len + padding; in ff_opus_parse_packet()
220 if (total_bytes > frame_bytes) in ff_opus_parse_packet()
225 pkt->frame_size[pkt->frame_count-1] = frame_bytes - total_bytes; in ff_opus_parse_packet()
/third_party/gstreamer/gstreamer/plugins/elements/
Dgstelements_private.c150 gst_writev (gint fd, const struct iovec *iov, gint iovcnt, gsize total_bytes) in gst_writev() argument
170 if (iovcnt > 1 && total_bytes <= FDSINK_MAX_MALLOC_SIZE) { in gst_writev()
173 if (total_bytes <= FDSINK_MAX_ALLOCA_SIZE) in gst_writev()
174 mem = g_alloca (total_bytes); in gst_writev()
176 mem = g_malloc (total_bytes); in gst_writev()
185 written = write (fd, mem, total_bytes); in gst_writev()
188 if (total_bytes > FDSINK_MAX_ALLOCA_SIZE) in gst_writev()
/third_party/node/src/
Dstream_base-inl.h170 size_t total_bytes = 0; in Write() local
172 total_bytes += bufs[i].len; in Write()
173 bytes_written_ += total_bytes; in Write()
178 return StreamWriteResult { false, err, nullptr, total_bytes, {} }; in Write()
214 async, err, req_wrap, total_bytes, std::move(req_wrap_ptr) }; in Write()
/third_party/grpc/test/core/iomgr/
Dtcp_posix_test.cc113 ssize_t total_bytes = 0; in fill_socket() local
122 total_bytes += write_bytes; in fill_socket()
126 return total_bytes; in fill_socket()
131 size_t total_bytes = 0; in fill_socket_partial() local
139 write_bytes = write(fd, buf, bytes - total_bytes); in fill_socket_partial()
141 total_bytes += static_cast<size_t>(write_bytes); in fill_socket_partial()
143 } while ((write_bytes >= 0 || errno == EINTR) && bytes > total_bytes); in fill_socket_partial()
147 return total_bytes; in fill_socket_partial()
/third_party/gstreamer/gstplugins_bad/gst/pnm/
Dgstpnmdec.c370 gint bytes, i, total_bytes = 0; in gst_pnmdec_handle_frame() local
402 total_bytes = bytes * 8; in gst_pnmdec_handle_frame()
420 total_bytes = o_rowstride * s->mngr.info.height; in gst_pnmdec_handle_frame()
423 total_bytes = s->size; in gst_pnmdec_handle_frame()
433 for (i = 0; i < total_bytes; i += 2) { in gst_pnmdec_handle_frame()
440 for (i = 0; i < total_bytes; i += 2) { in gst_pnmdec_handle_frame()
450 for (i = 0; i < total_bytes; i++) { in gst_pnmdec_handle_frame()
/third_party/mesa3d/src/amd/common/
Dac_nir_lower_esgs_io_to_mem.c57 unsigned total_bytes = num_components * bit_size / 8u; in emit_split_buffer_load() local
58 unsigned full_dwords = total_bytes / 4u; in emit_split_buffer_load()
59 unsigned remaining_bytes = total_bytes - full_dwords * 4u; in emit_split_buffer_load()
/third_party/e2fsprogs/lib/ext2fs/
Dtdbtool.c363 static int total_bytes; variable
367 total_bytes += dbuf.dsize; in traverse_fn()
374 total_bytes = 0; in info_tdb()
378 printf("%d records totalling %d bytes\n", count, total_bytes); in info_tdb()
/third_party/python/Tools/peg_generator/scripts/
Dtest_parse_directory.py86 total_bytes = 0
92 total_bytes += f.tell()
/third_party/protobuf/benchmarks/util/
Dresult_parser.py222 total_bytes, _ = __get_data_size(full_filename)
231 "throughput": total_bytes / float(result_list[2]) * 1e9 / 2 ** 20,
/third_party/glib/glib/
Dgfileutils.c698 gsize total_bytes = 0; in get_contents_stdio() local
712 if (total_bytes > G_MAXSIZE - bytes) in get_contents_stdio()
716 while (total_bytes + bytes >= total_allocated) in get_contents_stdio()
763 memcpy (str + total_bytes, buf, bytes); in get_contents_stdio()
765 total_bytes += bytes; in get_contents_stdio()
773 total_bytes = 0; in get_contents_stdio()
776 str[total_bytes] = '\0'; in get_contents_stdio()
779 *length = total_bytes; in get_contents_stdio()
/third_party/python/Lib/http/
Dclient.py601 total_bytes = 0
607 return total_bytes
612 return total_bytes + n
617 total_bytes += n
621 raise IncompleteRead(bytes(b[0:total_bytes]))
/third_party/gstreamer/gstplugins_good/gst/avi/
Dgstavidemux.h97 guint64 total_bytes; member
/third_party/gstreamer/gstplugins_good/gst/multifile/
Dgstsplitmuxsink.h82 guint64 total_bytes; member

12