ruby_memprofiler_pprof 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/ruby_memprofiler_pprof_ext/collector.c +803 -0
- data/ext/ruby_memprofiler_pprof_ext/compat.c +184 -0
- data/ext/ruby_memprofiler_pprof_ext/compile_commands.json +1 -0
- data/ext/ruby_memprofiler_pprof_ext/extconf.rb +152 -0
- data/ext/ruby_memprofiler_pprof_ext/pprof.upb.c +199 -0
- data/ext/ruby_memprofiler_pprof_ext/pprof.upb.h +924 -0
- data/ext/ruby_memprofiler_pprof_ext/pprof_out.c +430 -0
- data/ext/ruby_memprofiler_pprof_ext/ruby_hacks.c +118 -0
- data/ext/ruby_memprofiler_pprof_ext/ruby_memprofiler_pprof.c +10 -0
- data/ext/ruby_memprofiler_pprof_ext/ruby_memprofiler_pprof.h +183 -0
- data/ext/ruby_memprofiler_pprof_ext/ruby_private/ruby26/gc_private.h +324 -0
- data/ext/ruby_memprofiler_pprof_ext/ruby_private/ruby27/gc_private.h +339 -0
- data/ext/ruby_memprofiler_pprof_ext/ruby_private/ruby30/gc_private.h +361 -0
- data/ext/ruby_memprofiler_pprof_ext/ruby_private/ruby31/gc_private.h +374 -0
- data/ext/ruby_memprofiler_pprof_ext/ruby_private.h +31 -0
- data/ext/ruby_memprofiler_pprof_ext/sample.c +43 -0
- data/ext/ruby_memprofiler_pprof_ext/vendor/backtracie/backtracie.h +268 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/CONTRIBUTING.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/DESIGN.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/LICENSE +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/README.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/WORKSPACE +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/amalgamate.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/build_defs.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/lua.BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/protobuf.patch +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/py_proto_library.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/python_downloads.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/system_python.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/upb_proto_library.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/bazel/workspace_deps.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/BUILD.googleapis +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/benchmark.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/build_defs.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/compare.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/descriptor.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/descriptor_sv.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/empty.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/gen_protobuf_binary_cc.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/gen_synthetic_protos.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/benchmarks/gen_upb_binary_c.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/cmake/BUILD.bazel +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/cmake/README.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/cmake/build_defs.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/cmake/make_cmakelists.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/cmake/staleness_test.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/cmake/staleness_test_lib.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/docs/render.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/docs/style-guide.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/docs/vs-cpp-protos.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/docs/wrapping-upb.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/convert.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/convert.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/descriptor.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/descriptor.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/descriptor_containers.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/descriptor_containers.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/descriptor_pool.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/descriptor_pool.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/dist/BUILD.bazel +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/dist/dist.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/extension_dict.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/extension_dict.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/map.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/map.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/message.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/message.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/minimal_test.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/README.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/descriptor_database_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/descriptor_pool_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/descriptor_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/generator_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/json_format_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/keywords_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/message_factory_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/message_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/proto_builder_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/pyproto_test_wrapper.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/reflection_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/service_reflection_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/symbol_database_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/text_encoding_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/text_format_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/unknown_fields_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/well_known_types_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/pb_unit_tests/wire_format_test_wrapper.py +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/protobuf.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/protobuf.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/py_extension.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/python_api.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/repeated.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/repeated.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/unknown_fields.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/unknown_fields.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/python/version_script.lds +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/lunit/LICENSE +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/lunit/README.google +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/lunit/console.lua +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/lunit/lunit.lua +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/utf8_range/BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/utf8_range/LICENSE +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/utf8_range/naive.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/utf8_range/range2-neon.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/utf8_range/range2-sse.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/third_party/utf8_range/utf8_range.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/BUILD.bazel +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/README.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/def.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/lua_proto_library.bzl +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/main.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/msg.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/test.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/test_upb.lua +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/upb.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/upb.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/upb.lua +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/bindings/lua/upbc.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/collections.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/collections.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/conformance_upb.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/conformance_upb_failures.txt +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/decode.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/decode.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/decode_fast.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/decode_fast.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/decode_internal.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/def.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/def.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/def.hpp +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/empty.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/encode.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/encode.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/fuzz/BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/fuzz/file_descriptor_parsenew_fuzzer.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/json_decode.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/json_decode.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/json_encode.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/json_encode.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/mini_table.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/mini_table.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/mini_table.hpp +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/mini_table_accessors.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/mini_table_accessors.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/mini_table_accessors_internal.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/mini_table_accessors_test.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/mini_table_test.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/msg.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/msg.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/msg_internal.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/msg_test.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/msg_test.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/port_def.inc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/port_undef.inc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/reflection.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/reflection.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/reflection.hpp +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/table.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/table_internal.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/test.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/test_cpp.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/test_cpp.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/test_generated_code.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/test_table.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/text_encode.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/text_encode.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/upb.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/upb.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/upb.hpp +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/upb_internal.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/README.md +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/compare.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/compare.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/compare_test.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/def_to_proto.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/def_to_proto.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/def_to_proto_public_import_test.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/def_to_proto_regular_import_test.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/def_to_proto_test.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/def_to_proto_test.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/def_to_proto_weak_import_test.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/def_to_proto_wweak_import_test.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/required_fields.c +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/required_fields.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/required_fields_test.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upb/util/required_fields_test.proto +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upbc/BUILD +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upbc/common.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upbc/common.h +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upbc/protoc-gen-upb.cc +0 -0
- data/ext/{ruby_memprofiler_pprof → ruby_memprofiler_pprof_ext}/vendor/upb/upbc/protoc-gen-upbdefs.cc +0 -0
- data/lib/ruby_memprofiler_pprof/atfork.rb +1 -1
- data/lib/ruby_memprofiler_pprof/block_flusher.rb +48 -4
- data/lib/ruby_memprofiler_pprof/file_flusher.rb +13 -6
- data/lib/ruby_memprofiler_pprof/profile_app.rb +8 -12
- data/lib/ruby_memprofiler_pprof/profile_data.rb +7 -8
- data/lib/ruby_memprofiler_pprof/version.rb +1 -1
- data/lib/ruby_memprofiler_pprof.rb +5 -4
- data/libexec/ruby_memprofiler_pprof_profile +6 -6
- metadata +207 -200
- data/ext/ruby_memprofiler_pprof/backtrace.c +0 -429
- data/ext/ruby_memprofiler_pprof/collector.c +0 -1055
- data/ext/ruby_memprofiler_pprof/compat.c +0 -182
- data/ext/ruby_memprofiler_pprof/extconf.rb +0 -72
- data/ext/ruby_memprofiler_pprof/pprof.upb.c +0 -170
- data/ext/ruby_memprofiler_pprof/pprof.upb.h +0 -848
- data/ext/ruby_memprofiler_pprof/pprof_out.c +0 -285
- data/ext/ruby_memprofiler_pprof/ruby_memprofiler_pprof.c +0 -11
- data/ext/ruby_memprofiler_pprof/ruby_memprofiler_pprof.h +0 -301
- data/ext/ruby_memprofiler_pprof/strtab.c +0 -391
@@ -0,0 +1,924 @@
|
|
1
|
+
/* This file was generated by upbc (the upb compiler) from the input
|
2
|
+
* file:
|
3
|
+
*
|
4
|
+
* pprof.proto
|
5
|
+
*
|
6
|
+
* Do not edit -- your changes will be discarded when the file is
|
7
|
+
* regenerated. */
|
8
|
+
|
9
|
+
#ifndef PPROF_PROTO_UPB_H_
|
10
|
+
#define PPROF_PROTO_UPB_H_
|
11
|
+
|
12
|
+
#include "upb/decode.h"
|
13
|
+
#include "upb/decode_fast.h"
|
14
|
+
#include "upb/encode.h"
|
15
|
+
#include "upb/msg_internal.h"
|
16
|
+
|
17
|
+
#include "upb/port_def.inc"
|
18
|
+
|
19
|
+
#ifdef __cplusplus
|
20
|
+
extern "C" {
|
21
|
+
#endif
|
22
|
+
|
23
|
+
struct perftools_profiles_Profile;
|
24
|
+
struct perftools_profiles_ValueType;
|
25
|
+
struct perftools_profiles_Sample;
|
26
|
+
struct perftools_profiles_Label;
|
27
|
+
struct perftools_profiles_Mapping;
|
28
|
+
struct perftools_profiles_Location;
|
29
|
+
struct perftools_profiles_Line;
|
30
|
+
struct perftools_profiles_Function;
|
31
|
+
typedef struct perftools_profiles_Profile perftools_profiles_Profile;
|
32
|
+
typedef struct perftools_profiles_ValueType perftools_profiles_ValueType;
|
33
|
+
typedef struct perftools_profiles_Sample perftools_profiles_Sample;
|
34
|
+
typedef struct perftools_profiles_Label perftools_profiles_Label;
|
35
|
+
typedef struct perftools_profiles_Mapping perftools_profiles_Mapping;
|
36
|
+
typedef struct perftools_profiles_Location perftools_profiles_Location;
|
37
|
+
typedef struct perftools_profiles_Line perftools_profiles_Line;
|
38
|
+
typedef struct perftools_profiles_Function perftools_profiles_Function;
|
39
|
+
extern const upb_MiniTable perftools_profiles_Profile_msginit;
|
40
|
+
extern const upb_MiniTable perftools_profiles_ValueType_msginit;
|
41
|
+
extern const upb_MiniTable perftools_profiles_Sample_msginit;
|
42
|
+
extern const upb_MiniTable perftools_profiles_Label_msginit;
|
43
|
+
extern const upb_MiniTable perftools_profiles_Mapping_msginit;
|
44
|
+
extern const upb_MiniTable perftools_profiles_Location_msginit;
|
45
|
+
extern const upb_MiniTable perftools_profiles_Line_msginit;
|
46
|
+
extern const upb_MiniTable perftools_profiles_Function_msginit;
|
47
|
+
|
48
|
+
/* perftools.profiles.Profile */
|
49
|
+
|
50
|
+
UPB_INLINE perftools_profiles_Profile *perftools_profiles_Profile_new(upb_Arena *arena) {
|
51
|
+
return (perftools_profiles_Profile *)_upb_Message_New(&perftools_profiles_Profile_msginit, arena);
|
52
|
+
}
|
53
|
+
UPB_INLINE perftools_profiles_Profile *perftools_profiles_Profile_parse(const char *buf, size_t size,
|
54
|
+
upb_Arena *arena) {
|
55
|
+
perftools_profiles_Profile *ret = perftools_profiles_Profile_new(arena);
|
56
|
+
if (!ret)
|
57
|
+
return NULL;
|
58
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Profile_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
|
59
|
+
return NULL;
|
60
|
+
}
|
61
|
+
return ret;
|
62
|
+
}
|
63
|
+
UPB_INLINE perftools_profiles_Profile *perftools_profiles_Profile_parse_ex(const char *buf, size_t size,
|
64
|
+
const upb_ExtensionRegistry *extreg,
|
65
|
+
int options, upb_Arena *arena) {
|
66
|
+
perftools_profiles_Profile *ret = perftools_profiles_Profile_new(arena);
|
67
|
+
if (!ret)
|
68
|
+
return NULL;
|
69
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Profile_msginit, extreg, options, arena) != kUpb_DecodeStatus_Ok) {
|
70
|
+
return NULL;
|
71
|
+
}
|
72
|
+
return ret;
|
73
|
+
}
|
74
|
+
UPB_INLINE char *perftools_profiles_Profile_serialize(const perftools_profiles_Profile *msg, upb_Arena *arena,
|
75
|
+
size_t *len) {
|
76
|
+
return upb_Encode(msg, &perftools_profiles_Profile_msginit, 0, arena, len);
|
77
|
+
}
|
78
|
+
UPB_INLINE char *perftools_profiles_Profile_serialize_ex(const perftools_profiles_Profile *msg, int options,
|
79
|
+
upb_Arena *arena, size_t *len) {
|
80
|
+
return upb_Encode(msg, &perftools_profiles_Profile_msginit, options, arena, len);
|
81
|
+
}
|
82
|
+
UPB_INLINE bool perftools_profiles_Profile_has_sample_type(const perftools_profiles_Profile *msg) {
|
83
|
+
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8));
|
84
|
+
}
|
85
|
+
UPB_INLINE void perftools_profiles_Profile_clear_sample_type(const perftools_profiles_Profile *msg) {
|
86
|
+
_upb_array_detach(msg, UPB_SIZE(4, 8));
|
87
|
+
}
|
88
|
+
UPB_INLINE const perftools_profiles_ValueType *const *
|
89
|
+
perftools_profiles_Profile_sample_type(const perftools_profiles_Profile *msg, size_t *len) {
|
90
|
+
return (const perftools_profiles_ValueType *const *)_upb_array_accessor(msg, UPB_SIZE(4, 8), len);
|
91
|
+
}
|
92
|
+
UPB_INLINE bool perftools_profiles_Profile_has_sample(const perftools_profiles_Profile *msg) {
|
93
|
+
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16));
|
94
|
+
}
|
95
|
+
UPB_INLINE void perftools_profiles_Profile_clear_sample(const perftools_profiles_Profile *msg) {
|
96
|
+
_upb_array_detach(msg, UPB_SIZE(8, 16));
|
97
|
+
}
|
98
|
+
UPB_INLINE const perftools_profiles_Sample *const *
|
99
|
+
perftools_profiles_Profile_sample(const perftools_profiles_Profile *msg, size_t *len) {
|
100
|
+
return (const perftools_profiles_Sample *const *)_upb_array_accessor(msg, UPB_SIZE(8, 16), len);
|
101
|
+
}
|
102
|
+
UPB_INLINE bool perftools_profiles_Profile_has_mapping(const perftools_profiles_Profile *msg) {
|
103
|
+
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24));
|
104
|
+
}
|
105
|
+
UPB_INLINE void perftools_profiles_Profile_clear_mapping(const perftools_profiles_Profile *msg) {
|
106
|
+
_upb_array_detach(msg, UPB_SIZE(12, 24));
|
107
|
+
}
|
108
|
+
UPB_INLINE const perftools_profiles_Mapping *const *
|
109
|
+
perftools_profiles_Profile_mapping(const perftools_profiles_Profile *msg, size_t *len) {
|
110
|
+
return (const perftools_profiles_Mapping *const *)_upb_array_accessor(msg, UPB_SIZE(12, 24), len);
|
111
|
+
}
|
112
|
+
UPB_INLINE bool perftools_profiles_Profile_has_location(const perftools_profiles_Profile *msg) {
|
113
|
+
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(16, 32));
|
114
|
+
}
|
115
|
+
UPB_INLINE void perftools_profiles_Profile_clear_location(const perftools_profiles_Profile *msg) {
|
116
|
+
_upb_array_detach(msg, UPB_SIZE(16, 32));
|
117
|
+
}
|
118
|
+
UPB_INLINE const perftools_profiles_Location *const *
|
119
|
+
perftools_profiles_Profile_location(const perftools_profiles_Profile *msg, size_t *len) {
|
120
|
+
return (const perftools_profiles_Location *const *)_upb_array_accessor(msg, UPB_SIZE(16, 32), len);
|
121
|
+
}
|
122
|
+
UPB_INLINE bool perftools_profiles_Profile_has_function(const perftools_profiles_Profile *msg) {
|
123
|
+
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(20, 40));
|
124
|
+
}
|
125
|
+
UPB_INLINE void perftools_profiles_Profile_clear_function(const perftools_profiles_Profile *msg) {
|
126
|
+
_upb_array_detach(msg, UPB_SIZE(20, 40));
|
127
|
+
}
|
128
|
+
UPB_INLINE const perftools_profiles_Function *const *
|
129
|
+
perftools_profiles_Profile_function(const perftools_profiles_Profile *msg, size_t *len) {
|
130
|
+
return (const perftools_profiles_Function *const *)_upb_array_accessor(msg, UPB_SIZE(20, 40), len);
|
131
|
+
}
|
132
|
+
UPB_INLINE void perftools_profiles_Profile_clear_string_table(const perftools_profiles_Profile *msg) {
|
133
|
+
_upb_array_detach(msg, UPB_SIZE(24, 48));
|
134
|
+
}
|
135
|
+
UPB_INLINE upb_StringView const *perftools_profiles_Profile_string_table(const perftools_profiles_Profile *msg,
|
136
|
+
size_t *len) {
|
137
|
+
return (upb_StringView const *)_upb_array_accessor(msg, UPB_SIZE(24, 48), len);
|
138
|
+
}
|
139
|
+
UPB_INLINE void perftools_profiles_Profile_clear_drop_frames(const perftools_profiles_Profile *msg) {
|
140
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 72), int64_t) = 0;
|
141
|
+
}
|
142
|
+
UPB_INLINE int64_t perftools_profiles_Profile_drop_frames(const perftools_profiles_Profile *msg) {
|
143
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(40, 72), int64_t);
|
144
|
+
}
|
145
|
+
UPB_INLINE void perftools_profiles_Profile_clear_keep_frames(const perftools_profiles_Profile *msg) {
|
146
|
+
*UPB_PTR_AT(msg, UPB_SIZE(48, 80), int64_t) = 0;
|
147
|
+
}
|
148
|
+
UPB_INLINE int64_t perftools_profiles_Profile_keep_frames(const perftools_profiles_Profile *msg) {
|
149
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(48, 80), int64_t);
|
150
|
+
}
|
151
|
+
UPB_INLINE void perftools_profiles_Profile_clear_time_nanos(const perftools_profiles_Profile *msg) {
|
152
|
+
*UPB_PTR_AT(msg, UPB_SIZE(56, 88), int64_t) = 0;
|
153
|
+
}
|
154
|
+
UPB_INLINE int64_t perftools_profiles_Profile_time_nanos(const perftools_profiles_Profile *msg) {
|
155
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(56, 88), int64_t);
|
156
|
+
}
|
157
|
+
UPB_INLINE void perftools_profiles_Profile_clear_duration_nanos(const perftools_profiles_Profile *msg) {
|
158
|
+
*UPB_PTR_AT(msg, UPB_SIZE(64, 96), int64_t) = 0;
|
159
|
+
}
|
160
|
+
UPB_INLINE int64_t perftools_profiles_Profile_duration_nanos(const perftools_profiles_Profile *msg) {
|
161
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(64, 96), int64_t);
|
162
|
+
}
|
163
|
+
UPB_INLINE bool perftools_profiles_Profile_has_period_type(const perftools_profiles_Profile *msg) {
|
164
|
+
return _upb_hasbit(msg, 1);
|
165
|
+
}
|
166
|
+
UPB_INLINE void perftools_profiles_Profile_clear_period_type(const perftools_profiles_Profile *msg) {
|
167
|
+
*UPB_PTR_AT(msg, UPB_SIZE(28, 56), const upb_Message *) = NULL;
|
168
|
+
}
|
169
|
+
UPB_INLINE const perftools_profiles_ValueType *
|
170
|
+
perftools_profiles_Profile_period_type(const perftools_profiles_Profile *msg) {
|
171
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(28, 56), const perftools_profiles_ValueType *);
|
172
|
+
}
|
173
|
+
UPB_INLINE void perftools_profiles_Profile_clear_period(const perftools_profiles_Profile *msg) {
|
174
|
+
*UPB_PTR_AT(msg, UPB_SIZE(72, 104), int64_t) = 0;
|
175
|
+
}
|
176
|
+
UPB_INLINE int64_t perftools_profiles_Profile_period(const perftools_profiles_Profile *msg) {
|
177
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(72, 104), int64_t);
|
178
|
+
}
|
179
|
+
UPB_INLINE void perftools_profiles_Profile_clear_comment(const perftools_profiles_Profile *msg) {
|
180
|
+
_upb_array_detach(msg, UPB_SIZE(32, 64));
|
181
|
+
}
|
182
|
+
UPB_INLINE int64_t const *perftools_profiles_Profile_comment(const perftools_profiles_Profile *msg, size_t *len) {
|
183
|
+
return (int64_t const *)_upb_array_accessor(msg, UPB_SIZE(32, 64), len);
|
184
|
+
}
|
185
|
+
UPB_INLINE void perftools_profiles_Profile_clear_default_sample_type(const perftools_profiles_Profile *msg) {
|
186
|
+
*UPB_PTR_AT(msg, UPB_SIZE(80, 112), int64_t) = 0;
|
187
|
+
}
|
188
|
+
UPB_INLINE int64_t perftools_profiles_Profile_default_sample_type(const perftools_profiles_Profile *msg) {
|
189
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(80, 112), int64_t);
|
190
|
+
}
|
191
|
+
|
192
|
+
UPB_INLINE perftools_profiles_ValueType **
|
193
|
+
perftools_profiles_Profile_mutable_sample_type(perftools_profiles_Profile *msg, size_t *len) {
|
194
|
+
return (perftools_profiles_ValueType **)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len);
|
195
|
+
}
|
196
|
+
UPB_INLINE perftools_profiles_ValueType **perftools_profiles_Profile_resize_sample_type(perftools_profiles_Profile *msg,
|
197
|
+
size_t len, upb_Arena *arena) {
|
198
|
+
return (perftools_profiles_ValueType **)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena);
|
199
|
+
}
|
200
|
+
UPB_INLINE struct perftools_profiles_ValueType *
|
201
|
+
perftools_profiles_Profile_add_sample_type(perftools_profiles_Profile *msg, upb_Arena *arena) {
|
202
|
+
struct perftools_profiles_ValueType *sub =
|
203
|
+
(struct perftools_profiles_ValueType *)_upb_Message_New(&perftools_profiles_ValueType_msginit, arena);
|
204
|
+
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena);
|
205
|
+
if (!ok)
|
206
|
+
return NULL;
|
207
|
+
return sub;
|
208
|
+
}
|
209
|
+
UPB_INLINE perftools_profiles_Sample **perftools_profiles_Profile_mutable_sample(perftools_profiles_Profile *msg,
|
210
|
+
size_t *len) {
|
211
|
+
return (perftools_profiles_Sample **)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len);
|
212
|
+
}
|
213
|
+
UPB_INLINE perftools_profiles_Sample **perftools_profiles_Profile_resize_sample(perftools_profiles_Profile *msg,
|
214
|
+
size_t len, upb_Arena *arena) {
|
215
|
+
return (perftools_profiles_Sample **)_upb_Array_Resize_accessor2(msg, UPB_SIZE(8, 16), len, UPB_SIZE(2, 3), arena);
|
216
|
+
}
|
217
|
+
UPB_INLINE struct perftools_profiles_Sample *perftools_profiles_Profile_add_sample(perftools_profiles_Profile *msg,
|
218
|
+
upb_Arena *arena) {
|
219
|
+
struct perftools_profiles_Sample *sub =
|
220
|
+
(struct perftools_profiles_Sample *)_upb_Message_New(&perftools_profiles_Sample_msginit, arena);
|
221
|
+
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(2, 3), &sub, arena);
|
222
|
+
if (!ok)
|
223
|
+
return NULL;
|
224
|
+
return sub;
|
225
|
+
}
|
226
|
+
UPB_INLINE perftools_profiles_Mapping **perftools_profiles_Profile_mutable_mapping(perftools_profiles_Profile *msg,
|
227
|
+
size_t *len) {
|
228
|
+
return (perftools_profiles_Mapping **)_upb_array_mutable_accessor(msg, UPB_SIZE(12, 24), len);
|
229
|
+
}
|
230
|
+
UPB_INLINE perftools_profiles_Mapping **perftools_profiles_Profile_resize_mapping(perftools_profiles_Profile *msg,
|
231
|
+
size_t len, upb_Arena *arena) {
|
232
|
+
return (perftools_profiles_Mapping **)_upb_Array_Resize_accessor2(msg, UPB_SIZE(12, 24), len, UPB_SIZE(2, 3), arena);
|
233
|
+
}
|
234
|
+
UPB_INLINE struct perftools_profiles_Mapping *perftools_profiles_Profile_add_mapping(perftools_profiles_Profile *msg,
|
235
|
+
upb_Arena *arena) {
|
236
|
+
struct perftools_profiles_Mapping *sub =
|
237
|
+
(struct perftools_profiles_Mapping *)_upb_Message_New(&perftools_profiles_Mapping_msginit, arena);
|
238
|
+
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(12, 24), UPB_SIZE(2, 3), &sub, arena);
|
239
|
+
if (!ok)
|
240
|
+
return NULL;
|
241
|
+
return sub;
|
242
|
+
}
|
243
|
+
UPB_INLINE perftools_profiles_Location **perftools_profiles_Profile_mutable_location(perftools_profiles_Profile *msg,
|
244
|
+
size_t *len) {
|
245
|
+
return (perftools_profiles_Location **)_upb_array_mutable_accessor(msg, UPB_SIZE(16, 32), len);
|
246
|
+
}
|
247
|
+
UPB_INLINE perftools_profiles_Location **perftools_profiles_Profile_resize_location(perftools_profiles_Profile *msg,
|
248
|
+
size_t len, upb_Arena *arena) {
|
249
|
+
return (perftools_profiles_Location **)_upb_Array_Resize_accessor2(msg, UPB_SIZE(16, 32), len, UPB_SIZE(2, 3), arena);
|
250
|
+
}
|
251
|
+
UPB_INLINE struct perftools_profiles_Location *perftools_profiles_Profile_add_location(perftools_profiles_Profile *msg,
|
252
|
+
upb_Arena *arena) {
|
253
|
+
struct perftools_profiles_Location *sub =
|
254
|
+
(struct perftools_profiles_Location *)_upb_Message_New(&perftools_profiles_Location_msginit, arena);
|
255
|
+
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(16, 32), UPB_SIZE(2, 3), &sub, arena);
|
256
|
+
if (!ok)
|
257
|
+
return NULL;
|
258
|
+
return sub;
|
259
|
+
}
|
260
|
+
UPB_INLINE perftools_profiles_Function **perftools_profiles_Profile_mutable_function(perftools_profiles_Profile *msg,
|
261
|
+
size_t *len) {
|
262
|
+
return (perftools_profiles_Function **)_upb_array_mutable_accessor(msg, UPB_SIZE(20, 40), len);
|
263
|
+
}
|
264
|
+
UPB_INLINE perftools_profiles_Function **perftools_profiles_Profile_resize_function(perftools_profiles_Profile *msg,
|
265
|
+
size_t len, upb_Arena *arena) {
|
266
|
+
return (perftools_profiles_Function **)_upb_Array_Resize_accessor2(msg, UPB_SIZE(20, 40), len, UPB_SIZE(2, 3), arena);
|
267
|
+
}
|
268
|
+
UPB_INLINE struct perftools_profiles_Function *perftools_profiles_Profile_add_function(perftools_profiles_Profile *msg,
|
269
|
+
upb_Arena *arena) {
|
270
|
+
struct perftools_profiles_Function *sub =
|
271
|
+
(struct perftools_profiles_Function *)_upb_Message_New(&perftools_profiles_Function_msginit, arena);
|
272
|
+
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(20, 40), UPB_SIZE(2, 3), &sub, arena);
|
273
|
+
if (!ok)
|
274
|
+
return NULL;
|
275
|
+
return sub;
|
276
|
+
}
|
277
|
+
UPB_INLINE upb_StringView *perftools_profiles_Profile_mutable_string_table(perftools_profiles_Profile *msg,
|
278
|
+
size_t *len) {
|
279
|
+
return (upb_StringView *)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 48), len);
|
280
|
+
}
|
281
|
+
UPB_INLINE upb_StringView *perftools_profiles_Profile_resize_string_table(perftools_profiles_Profile *msg, size_t len,
|
282
|
+
upb_Arena *arena) {
|
283
|
+
return (upb_StringView *)_upb_Array_Resize_accessor2(msg, UPB_SIZE(24, 48), len, UPB_SIZE(3, 4), arena);
|
284
|
+
}
|
285
|
+
UPB_INLINE bool perftools_profiles_Profile_add_string_table(perftools_profiles_Profile *msg, upb_StringView val,
|
286
|
+
upb_Arena *arena) {
|
287
|
+
return _upb_Array_Append_accessor2(msg, UPB_SIZE(24, 48), UPB_SIZE(3, 4), &val, arena);
|
288
|
+
}
|
289
|
+
UPB_INLINE void perftools_profiles_Profile_set_drop_frames(perftools_profiles_Profile *msg, int64_t value) {
|
290
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 72), int64_t) = value;
|
291
|
+
}
|
292
|
+
UPB_INLINE void perftools_profiles_Profile_set_keep_frames(perftools_profiles_Profile *msg, int64_t value) {
|
293
|
+
*UPB_PTR_AT(msg, UPB_SIZE(48, 80), int64_t) = value;
|
294
|
+
}
|
295
|
+
UPB_INLINE void perftools_profiles_Profile_set_time_nanos(perftools_profiles_Profile *msg, int64_t value) {
|
296
|
+
*UPB_PTR_AT(msg, UPB_SIZE(56, 88), int64_t) = value;
|
297
|
+
}
|
298
|
+
UPB_INLINE void perftools_profiles_Profile_set_duration_nanos(perftools_profiles_Profile *msg, int64_t value) {
|
299
|
+
*UPB_PTR_AT(msg, UPB_SIZE(64, 96), int64_t) = value;
|
300
|
+
}
|
301
|
+
UPB_INLINE void perftools_profiles_Profile_set_period_type(perftools_profiles_Profile *msg,
|
302
|
+
perftools_profiles_ValueType *value) {
|
303
|
+
_upb_sethas(msg, 1);
|
304
|
+
*UPB_PTR_AT(msg, UPB_SIZE(28, 56), perftools_profiles_ValueType *) = value;
|
305
|
+
}
|
306
|
+
UPB_INLINE struct perftools_profiles_ValueType *
|
307
|
+
perftools_profiles_Profile_mutable_period_type(perftools_profiles_Profile *msg, upb_Arena *arena) {
|
308
|
+
struct perftools_profiles_ValueType *sub =
|
309
|
+
(struct perftools_profiles_ValueType *)perftools_profiles_Profile_period_type(msg);
|
310
|
+
if (sub == NULL) {
|
311
|
+
sub = (struct perftools_profiles_ValueType *)_upb_Message_New(&perftools_profiles_ValueType_msginit, arena);
|
312
|
+
if (!sub)
|
313
|
+
return NULL;
|
314
|
+
perftools_profiles_Profile_set_period_type(msg, sub);
|
315
|
+
}
|
316
|
+
return sub;
|
317
|
+
}
|
318
|
+
UPB_INLINE void perftools_profiles_Profile_set_period(perftools_profiles_Profile *msg, int64_t value) {
|
319
|
+
*UPB_PTR_AT(msg, UPB_SIZE(72, 104), int64_t) = value;
|
320
|
+
}
|
321
|
+
UPB_INLINE int64_t *perftools_profiles_Profile_mutable_comment(perftools_profiles_Profile *msg, size_t *len) {
|
322
|
+
return (int64_t *)_upb_array_mutable_accessor(msg, UPB_SIZE(32, 64), len);
|
323
|
+
}
|
324
|
+
UPB_INLINE int64_t *perftools_profiles_Profile_resize_comment(perftools_profiles_Profile *msg, size_t len,
|
325
|
+
upb_Arena *arena) {
|
326
|
+
return (int64_t *)_upb_Array_Resize_accessor2(msg, UPB_SIZE(32, 64), len, 3, arena);
|
327
|
+
}
|
328
|
+
UPB_INLINE bool perftools_profiles_Profile_add_comment(perftools_profiles_Profile *msg, int64_t val, upb_Arena *arena) {
|
329
|
+
return _upb_Array_Append_accessor2(msg, UPB_SIZE(32, 64), 3, &val, arena);
|
330
|
+
}
|
331
|
+
UPB_INLINE void perftools_profiles_Profile_set_default_sample_type(perftools_profiles_Profile *msg, int64_t value) {
|
332
|
+
*UPB_PTR_AT(msg, UPB_SIZE(80, 112), int64_t) = value;
|
333
|
+
}
|
334
|
+
|
335
|
+
/* perftools.profiles.ValueType */
|
336
|
+
|
337
|
+
UPB_INLINE perftools_profiles_ValueType *perftools_profiles_ValueType_new(upb_Arena *arena) {
|
338
|
+
return (perftools_profiles_ValueType *)_upb_Message_New(&perftools_profiles_ValueType_msginit, arena);
|
339
|
+
}
|
340
|
+
UPB_INLINE perftools_profiles_ValueType *perftools_profiles_ValueType_parse(const char *buf, size_t size,
|
341
|
+
upb_Arena *arena) {
|
342
|
+
perftools_profiles_ValueType *ret = perftools_profiles_ValueType_new(arena);
|
343
|
+
if (!ret)
|
344
|
+
return NULL;
|
345
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_ValueType_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
|
346
|
+
return NULL;
|
347
|
+
}
|
348
|
+
return ret;
|
349
|
+
}
|
350
|
+
UPB_INLINE perftools_profiles_ValueType *perftools_profiles_ValueType_parse_ex(const char *buf, size_t size,
|
351
|
+
const upb_ExtensionRegistry *extreg,
|
352
|
+
int options, upb_Arena *arena) {
|
353
|
+
perftools_profiles_ValueType *ret = perftools_profiles_ValueType_new(arena);
|
354
|
+
if (!ret)
|
355
|
+
return NULL;
|
356
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_ValueType_msginit, extreg, options, arena) !=
|
357
|
+
kUpb_DecodeStatus_Ok) {
|
358
|
+
return NULL;
|
359
|
+
}
|
360
|
+
return ret;
|
361
|
+
}
|
362
|
+
UPB_INLINE char *perftools_profiles_ValueType_serialize(const perftools_profiles_ValueType *msg, upb_Arena *arena,
|
363
|
+
size_t *len) {
|
364
|
+
return upb_Encode(msg, &perftools_profiles_ValueType_msginit, 0, arena, len);
|
365
|
+
}
|
366
|
+
UPB_INLINE char *perftools_profiles_ValueType_serialize_ex(const perftools_profiles_ValueType *msg, int options,
|
367
|
+
upb_Arena *arena, size_t *len) {
|
368
|
+
return upb_Encode(msg, &perftools_profiles_ValueType_msginit, options, arena, len);
|
369
|
+
}
|
370
|
+
UPB_INLINE void perftools_profiles_ValueType_clear_type(const perftools_profiles_ValueType *msg) {
|
371
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t) = 0;
|
372
|
+
}
|
373
|
+
UPB_INLINE int64_t perftools_profiles_ValueType_type(const perftools_profiles_ValueType *msg) {
|
374
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t);
|
375
|
+
}
|
376
|
+
UPB_INLINE void perftools_profiles_ValueType_clear_unit(const perftools_profiles_ValueType *msg) {
|
377
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = 0;
|
378
|
+
}
|
379
|
+
UPB_INLINE int64_t perftools_profiles_ValueType_unit(const perftools_profiles_ValueType *msg) {
|
380
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t);
|
381
|
+
}
|
382
|
+
|
383
|
+
UPB_INLINE void perftools_profiles_ValueType_set_type(perftools_profiles_ValueType *msg, int64_t value) {
|
384
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t) = value;
|
385
|
+
}
|
386
|
+
UPB_INLINE void perftools_profiles_ValueType_set_unit(perftools_profiles_ValueType *msg, int64_t value) {
|
387
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
|
388
|
+
}
|
389
|
+
|
390
|
+
/* perftools.profiles.Sample */
|
391
|
+
|
392
|
+
UPB_INLINE perftools_profiles_Sample *perftools_profiles_Sample_new(upb_Arena *arena) {
|
393
|
+
return (perftools_profiles_Sample *)_upb_Message_New(&perftools_profiles_Sample_msginit, arena);
|
394
|
+
}
|
395
|
+
UPB_INLINE perftools_profiles_Sample *perftools_profiles_Sample_parse(const char *buf, size_t size, upb_Arena *arena) {
|
396
|
+
perftools_profiles_Sample *ret = perftools_profiles_Sample_new(arena);
|
397
|
+
if (!ret)
|
398
|
+
return NULL;
|
399
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Sample_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
|
400
|
+
return NULL;
|
401
|
+
}
|
402
|
+
return ret;
|
403
|
+
}
|
404
|
+
UPB_INLINE perftools_profiles_Sample *perftools_profiles_Sample_parse_ex(const char *buf, size_t size,
|
405
|
+
const upb_ExtensionRegistry *extreg,
|
406
|
+
int options, upb_Arena *arena) {
|
407
|
+
perftools_profiles_Sample *ret = perftools_profiles_Sample_new(arena);
|
408
|
+
if (!ret)
|
409
|
+
return NULL;
|
410
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Sample_msginit, extreg, options, arena) != kUpb_DecodeStatus_Ok) {
|
411
|
+
return NULL;
|
412
|
+
}
|
413
|
+
return ret;
|
414
|
+
}
|
415
|
+
UPB_INLINE char *perftools_profiles_Sample_serialize(const perftools_profiles_Sample *msg, upb_Arena *arena,
|
416
|
+
size_t *len) {
|
417
|
+
return upb_Encode(msg, &perftools_profiles_Sample_msginit, 0, arena, len);
|
418
|
+
}
|
419
|
+
UPB_INLINE char *perftools_profiles_Sample_serialize_ex(const perftools_profiles_Sample *msg, int options,
|
420
|
+
upb_Arena *arena, size_t *len) {
|
421
|
+
return upb_Encode(msg, &perftools_profiles_Sample_msginit, options, arena, len);
|
422
|
+
}
|
423
|
+
UPB_INLINE void perftools_profiles_Sample_clear_location_id(const perftools_profiles_Sample *msg) {
|
424
|
+
_upb_array_detach(msg, UPB_SIZE(0, 0));
|
425
|
+
}
|
426
|
+
UPB_INLINE uint64_t const *perftools_profiles_Sample_location_id(const perftools_profiles_Sample *msg, size_t *len) {
|
427
|
+
return (uint64_t const *)_upb_array_accessor(msg, UPB_SIZE(0, 0), len);
|
428
|
+
}
|
429
|
+
UPB_INLINE void perftools_profiles_Sample_clear_value(const perftools_profiles_Sample *msg) {
|
430
|
+
_upb_array_detach(msg, UPB_SIZE(4, 8));
|
431
|
+
}
|
432
|
+
UPB_INLINE int64_t const *perftools_profiles_Sample_value(const perftools_profiles_Sample *msg, size_t *len) {
|
433
|
+
return (int64_t const *)_upb_array_accessor(msg, UPB_SIZE(4, 8), len);
|
434
|
+
}
|
435
|
+
UPB_INLINE bool perftools_profiles_Sample_has_label(const perftools_profiles_Sample *msg) {
|
436
|
+
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16));
|
437
|
+
}
|
438
|
+
UPB_INLINE void perftools_profiles_Sample_clear_label(const perftools_profiles_Sample *msg) {
|
439
|
+
_upb_array_detach(msg, UPB_SIZE(8, 16));
|
440
|
+
}
|
441
|
+
UPB_INLINE const perftools_profiles_Label *const *perftools_profiles_Sample_label(const perftools_profiles_Sample *msg,
|
442
|
+
size_t *len) {
|
443
|
+
return (const perftools_profiles_Label *const *)_upb_array_accessor(msg, UPB_SIZE(8, 16), len);
|
444
|
+
}
|
445
|
+
|
446
|
+
UPB_INLINE uint64_t *perftools_profiles_Sample_mutable_location_id(perftools_profiles_Sample *msg, size_t *len) {
|
447
|
+
return (uint64_t *)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len);
|
448
|
+
}
|
449
|
+
UPB_INLINE uint64_t *perftools_profiles_Sample_resize_location_id(perftools_profiles_Sample *msg, size_t len,
|
450
|
+
upb_Arena *arena) {
|
451
|
+
return (uint64_t *)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, 3, arena);
|
452
|
+
}
|
453
|
+
UPB_INLINE bool perftools_profiles_Sample_add_location_id(perftools_profiles_Sample *msg, uint64_t val,
|
454
|
+
upb_Arena *arena) {
|
455
|
+
return _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), 3, &val, arena);
|
456
|
+
}
|
457
|
+
UPB_INLINE int64_t *perftools_profiles_Sample_mutable_value(perftools_profiles_Sample *msg, size_t *len) {
|
458
|
+
return (int64_t *)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len);
|
459
|
+
}
|
460
|
+
UPB_INLINE int64_t *perftools_profiles_Sample_resize_value(perftools_profiles_Sample *msg, size_t len,
|
461
|
+
upb_Arena *arena) {
|
462
|
+
return (int64_t *)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, 3, arena);
|
463
|
+
}
|
464
|
+
UPB_INLINE bool perftools_profiles_Sample_add_value(perftools_profiles_Sample *msg, int64_t val, upb_Arena *arena) {
|
465
|
+
return _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), 3, &val, arena);
|
466
|
+
}
|
467
|
+
UPB_INLINE perftools_profiles_Label **perftools_profiles_Sample_mutable_label(perftools_profiles_Sample *msg,
|
468
|
+
size_t *len) {
|
469
|
+
return (perftools_profiles_Label **)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len);
|
470
|
+
}
|
471
|
+
UPB_INLINE perftools_profiles_Label **perftools_profiles_Sample_resize_label(perftools_profiles_Sample *msg, size_t len,
|
472
|
+
upb_Arena *arena) {
|
473
|
+
return (perftools_profiles_Label **)_upb_Array_Resize_accessor2(msg, UPB_SIZE(8, 16), len, UPB_SIZE(2, 3), arena);
|
474
|
+
}
|
475
|
+
UPB_INLINE struct perftools_profiles_Label *perftools_profiles_Sample_add_label(perftools_profiles_Sample *msg,
|
476
|
+
upb_Arena *arena) {
|
477
|
+
struct perftools_profiles_Label *sub =
|
478
|
+
(struct perftools_profiles_Label *)_upb_Message_New(&perftools_profiles_Label_msginit, arena);
|
479
|
+
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(2, 3), &sub, arena);
|
480
|
+
if (!ok)
|
481
|
+
return NULL;
|
482
|
+
return sub;
|
483
|
+
}
|
484
|
+
|
485
|
+
/* perftools.profiles.Label */
|
486
|
+
|
487
|
+
UPB_INLINE perftools_profiles_Label *perftools_profiles_Label_new(upb_Arena *arena) {
|
488
|
+
return (perftools_profiles_Label *)_upb_Message_New(&perftools_profiles_Label_msginit, arena);
|
489
|
+
}
|
490
|
+
UPB_INLINE perftools_profiles_Label *perftools_profiles_Label_parse(const char *buf, size_t size, upb_Arena *arena) {
|
491
|
+
perftools_profiles_Label *ret = perftools_profiles_Label_new(arena);
|
492
|
+
if (!ret)
|
493
|
+
return NULL;
|
494
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Label_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
|
495
|
+
return NULL;
|
496
|
+
}
|
497
|
+
return ret;
|
498
|
+
}
|
499
|
+
UPB_INLINE perftools_profiles_Label *perftools_profiles_Label_parse_ex(const char *buf, size_t size,
|
500
|
+
const upb_ExtensionRegistry *extreg, int options,
|
501
|
+
upb_Arena *arena) {
|
502
|
+
perftools_profiles_Label *ret = perftools_profiles_Label_new(arena);
|
503
|
+
if (!ret)
|
504
|
+
return NULL;
|
505
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Label_msginit, extreg, options, arena) != kUpb_DecodeStatus_Ok) {
|
506
|
+
return NULL;
|
507
|
+
}
|
508
|
+
return ret;
|
509
|
+
}
|
510
|
+
UPB_INLINE char *perftools_profiles_Label_serialize(const perftools_profiles_Label *msg, upb_Arena *arena,
|
511
|
+
size_t *len) {
|
512
|
+
return upb_Encode(msg, &perftools_profiles_Label_msginit, 0, arena, len);
|
513
|
+
}
|
514
|
+
UPB_INLINE char *perftools_profiles_Label_serialize_ex(const perftools_profiles_Label *msg, int options,
|
515
|
+
upb_Arena *arena, size_t *len) {
|
516
|
+
return upb_Encode(msg, &perftools_profiles_Label_msginit, options, arena, len);
|
517
|
+
}
|
518
|
+
UPB_INLINE void perftools_profiles_Label_clear_key(const perftools_profiles_Label *msg) {
|
519
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t) = 0;
|
520
|
+
}
|
521
|
+
UPB_INLINE int64_t perftools_profiles_Label_key(const perftools_profiles_Label *msg) {
|
522
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t);
|
523
|
+
}
|
524
|
+
UPB_INLINE void perftools_profiles_Label_clear_str(const perftools_profiles_Label *msg) {
|
525
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = 0;
|
526
|
+
}
|
527
|
+
UPB_INLINE int64_t perftools_profiles_Label_str(const perftools_profiles_Label *msg) {
|
528
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t);
|
529
|
+
}
|
530
|
+
UPB_INLINE void perftools_profiles_Label_clear_num(const perftools_profiles_Label *msg) {
|
531
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = 0;
|
532
|
+
}
|
533
|
+
UPB_INLINE int64_t perftools_profiles_Label_num(const perftools_profiles_Label *msg) {
|
534
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t);
|
535
|
+
}
|
536
|
+
UPB_INLINE void perftools_profiles_Label_clear_num_unit(const perftools_profiles_Label *msg) {
|
537
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = 0;
|
538
|
+
}
|
539
|
+
UPB_INLINE int64_t perftools_profiles_Label_num_unit(const perftools_profiles_Label *msg) {
|
540
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t);
|
541
|
+
}
|
542
|
+
|
543
|
+
UPB_INLINE void perftools_profiles_Label_set_key(perftools_profiles_Label *msg, int64_t value) {
|
544
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int64_t) = value;
|
545
|
+
}
|
546
|
+
UPB_INLINE void perftools_profiles_Label_set_str(perftools_profiles_Label *msg, int64_t value) {
|
547
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
|
548
|
+
}
|
549
|
+
UPB_INLINE void perftools_profiles_Label_set_num(perftools_profiles_Label *msg, int64_t value) {
|
550
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = value;
|
551
|
+
}
|
552
|
+
UPB_INLINE void perftools_profiles_Label_set_num_unit(perftools_profiles_Label *msg, int64_t value) {
|
553
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = value;
|
554
|
+
}
|
555
|
+
|
556
|
+
/* perftools.profiles.Mapping */
|
557
|
+
|
558
|
+
UPB_INLINE perftools_profiles_Mapping *perftools_profiles_Mapping_new(upb_Arena *arena) {
|
559
|
+
return (perftools_profiles_Mapping *)_upb_Message_New(&perftools_profiles_Mapping_msginit, arena);
|
560
|
+
}
|
561
|
+
UPB_INLINE perftools_profiles_Mapping *perftools_profiles_Mapping_parse(const char *buf, size_t size,
|
562
|
+
upb_Arena *arena) {
|
563
|
+
perftools_profiles_Mapping *ret = perftools_profiles_Mapping_new(arena);
|
564
|
+
if (!ret)
|
565
|
+
return NULL;
|
566
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Mapping_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
|
567
|
+
return NULL;
|
568
|
+
}
|
569
|
+
return ret;
|
570
|
+
}
|
571
|
+
UPB_INLINE perftools_profiles_Mapping *perftools_profiles_Mapping_parse_ex(const char *buf, size_t size,
|
572
|
+
const upb_ExtensionRegistry *extreg,
|
573
|
+
int options, upb_Arena *arena) {
|
574
|
+
perftools_profiles_Mapping *ret = perftools_profiles_Mapping_new(arena);
|
575
|
+
if (!ret)
|
576
|
+
return NULL;
|
577
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Mapping_msginit, extreg, options, arena) != kUpb_DecodeStatus_Ok) {
|
578
|
+
return NULL;
|
579
|
+
}
|
580
|
+
return ret;
|
581
|
+
}
|
582
|
+
UPB_INLINE char *perftools_profiles_Mapping_serialize(const perftools_profiles_Mapping *msg, upb_Arena *arena,
|
583
|
+
size_t *len) {
|
584
|
+
return upb_Encode(msg, &perftools_profiles_Mapping_msginit, 0, arena, len);
|
585
|
+
}
|
586
|
+
UPB_INLINE char *perftools_profiles_Mapping_serialize_ex(const perftools_profiles_Mapping *msg, int options,
|
587
|
+
upb_Arena *arena, size_t *len) {
|
588
|
+
return upb_Encode(msg, &perftools_profiles_Mapping_msginit, options, arena, len);
|
589
|
+
}
|
590
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_id(const perftools_profiles_Mapping *msg) {
|
591
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = 0;
|
592
|
+
}
|
593
|
+
UPB_INLINE uint64_t perftools_profiles_Mapping_id(const perftools_profiles_Mapping *msg) {
|
594
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t);
|
595
|
+
}
|
596
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_memory_start(const perftools_profiles_Mapping *msg) {
|
597
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = 0;
|
598
|
+
}
|
599
|
+
UPB_INLINE uint64_t perftools_profiles_Mapping_memory_start(const perftools_profiles_Mapping *msg) {
|
600
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t);
|
601
|
+
}
|
602
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_memory_limit(const perftools_profiles_Mapping *msg) {
|
603
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = 0;
|
604
|
+
}
|
605
|
+
UPB_INLINE uint64_t perftools_profiles_Mapping_memory_limit(const perftools_profiles_Mapping *msg) {
|
606
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t);
|
607
|
+
}
|
608
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_file_offset(const perftools_profiles_Mapping *msg) {
|
609
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = 0;
|
610
|
+
}
|
611
|
+
UPB_INLINE uint64_t perftools_profiles_Mapping_file_offset(const perftools_profiles_Mapping *msg) {
|
612
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t);
|
613
|
+
}
|
614
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_filename(const perftools_profiles_Mapping *msg) {
|
615
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t) = 0;
|
616
|
+
}
|
617
|
+
UPB_INLINE int64_t perftools_profiles_Mapping_filename(const perftools_profiles_Mapping *msg) {
|
618
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t);
|
619
|
+
}
|
620
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_build_id(const perftools_profiles_Mapping *msg) {
|
621
|
+
*UPB_PTR_AT(msg, UPB_SIZE(48, 48), int64_t) = 0;
|
622
|
+
}
|
623
|
+
UPB_INLINE int64_t perftools_profiles_Mapping_build_id(const perftools_profiles_Mapping *msg) {
|
624
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), int64_t);
|
625
|
+
}
|
626
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_has_functions(const perftools_profiles_Mapping *msg) {
|
627
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = 0;
|
628
|
+
}
|
629
|
+
UPB_INLINE bool perftools_profiles_Mapping_has_functions(const perftools_profiles_Mapping *msg) {
|
630
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool);
|
631
|
+
}
|
632
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_has_filenames(const perftools_profiles_Mapping *msg) {
|
633
|
+
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = 0;
|
634
|
+
}
|
635
|
+
UPB_INLINE bool perftools_profiles_Mapping_has_filenames(const perftools_profiles_Mapping *msg) {
|
636
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool);
|
637
|
+
}
|
638
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_has_line_numbers(const perftools_profiles_Mapping *msg) {
|
639
|
+
*UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool) = 0;
|
640
|
+
}
|
641
|
+
UPB_INLINE bool perftools_profiles_Mapping_has_line_numbers(const perftools_profiles_Mapping *msg) {
|
642
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool);
|
643
|
+
}
|
644
|
+
UPB_INLINE void perftools_profiles_Mapping_clear_has_inline_frames(const perftools_profiles_Mapping *msg) {
|
645
|
+
*UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool) = 0;
|
646
|
+
}
|
647
|
+
UPB_INLINE bool perftools_profiles_Mapping_has_inline_frames(const perftools_profiles_Mapping *msg) {
|
648
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool);
|
649
|
+
}
|
650
|
+
|
651
|
+
UPB_INLINE void perftools_profiles_Mapping_set_id(perftools_profiles_Mapping *msg, uint64_t value) {
|
652
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
|
653
|
+
}
|
654
|
+
UPB_INLINE void perftools_profiles_Mapping_set_memory_start(perftools_profiles_Mapping *msg, uint64_t value) {
|
655
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
|
656
|
+
}
|
657
|
+
UPB_INLINE void perftools_profiles_Mapping_set_memory_limit(perftools_profiles_Mapping *msg, uint64_t value) {
|
658
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value;
|
659
|
+
}
|
660
|
+
UPB_INLINE void perftools_profiles_Mapping_set_file_offset(perftools_profiles_Mapping *msg, uint64_t value) {
|
661
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = value;
|
662
|
+
}
|
663
|
+
UPB_INLINE void perftools_profiles_Mapping_set_filename(perftools_profiles_Mapping *msg, int64_t value) {
|
664
|
+
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t) = value;
|
665
|
+
}
|
666
|
+
UPB_INLINE void perftools_profiles_Mapping_set_build_id(perftools_profiles_Mapping *msg, int64_t value) {
|
667
|
+
*UPB_PTR_AT(msg, UPB_SIZE(48, 48), int64_t) = value;
|
668
|
+
}
|
669
|
+
UPB_INLINE void perftools_profiles_Mapping_set_has_functions(perftools_profiles_Mapping *msg, bool value) {
|
670
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = value;
|
671
|
+
}
|
672
|
+
UPB_INLINE void perftools_profiles_Mapping_set_has_filenames(perftools_profiles_Mapping *msg, bool value) {
|
673
|
+
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
|
674
|
+
}
|
675
|
+
UPB_INLINE void perftools_profiles_Mapping_set_has_line_numbers(perftools_profiles_Mapping *msg, bool value) {
|
676
|
+
*UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool) = value;
|
677
|
+
}
|
678
|
+
UPB_INLINE void perftools_profiles_Mapping_set_has_inline_frames(perftools_profiles_Mapping *msg, bool value) {
|
679
|
+
*UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool) = value;
|
680
|
+
}
|
681
|
+
|
682
|
+
/* perftools.profiles.Location */
|
683
|
+
|
684
|
+
UPB_INLINE perftools_profiles_Location *perftools_profiles_Location_new(upb_Arena *arena) {
|
685
|
+
return (perftools_profiles_Location *)_upb_Message_New(&perftools_profiles_Location_msginit, arena);
|
686
|
+
}
|
687
|
+
UPB_INLINE perftools_profiles_Location *perftools_profiles_Location_parse(const char *buf, size_t size,
|
688
|
+
upb_Arena *arena) {
|
689
|
+
perftools_profiles_Location *ret = perftools_profiles_Location_new(arena);
|
690
|
+
if (!ret)
|
691
|
+
return NULL;
|
692
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Location_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
|
693
|
+
return NULL;
|
694
|
+
}
|
695
|
+
return ret;
|
696
|
+
}
|
697
|
+
UPB_INLINE perftools_profiles_Location *perftools_profiles_Location_parse_ex(const char *buf, size_t size,
|
698
|
+
const upb_ExtensionRegistry *extreg,
|
699
|
+
int options, upb_Arena *arena) {
|
700
|
+
perftools_profiles_Location *ret = perftools_profiles_Location_new(arena);
|
701
|
+
if (!ret)
|
702
|
+
return NULL;
|
703
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Location_msginit, extreg, options, arena) !=
|
704
|
+
kUpb_DecodeStatus_Ok) {
|
705
|
+
return NULL;
|
706
|
+
}
|
707
|
+
return ret;
|
708
|
+
}
|
709
|
+
UPB_INLINE char *perftools_profiles_Location_serialize(const perftools_profiles_Location *msg, upb_Arena *arena,
|
710
|
+
size_t *len) {
|
711
|
+
return upb_Encode(msg, &perftools_profiles_Location_msginit, 0, arena, len);
|
712
|
+
}
|
713
|
+
UPB_INLINE char *perftools_profiles_Location_serialize_ex(const perftools_profiles_Location *msg, int options,
|
714
|
+
upb_Arena *arena, size_t *len) {
|
715
|
+
return upb_Encode(msg, &perftools_profiles_Location_msginit, options, arena, len);
|
716
|
+
}
|
717
|
+
UPB_INLINE void perftools_profiles_Location_clear_id(const perftools_profiles_Location *msg) {
|
718
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), uint64_t) = 0;
|
719
|
+
}
|
720
|
+
UPB_INLINE uint64_t perftools_profiles_Location_id(const perftools_profiles_Location *msg) {
|
721
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), uint64_t);
|
722
|
+
}
|
723
|
+
UPB_INLINE void perftools_profiles_Location_clear_mapping_id(const perftools_profiles_Location *msg) {
|
724
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), uint64_t) = 0;
|
725
|
+
}
|
726
|
+
UPB_INLINE uint64_t perftools_profiles_Location_mapping_id(const perftools_profiles_Location *msg) {
|
727
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), uint64_t);
|
728
|
+
}
|
729
|
+
UPB_INLINE void perftools_profiles_Location_clear_address(const perftools_profiles_Location *msg) {
|
730
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 32), uint64_t) = 0;
|
731
|
+
}
|
732
|
+
UPB_INLINE uint64_t perftools_profiles_Location_address(const perftools_profiles_Location *msg) {
|
733
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(24, 32), uint64_t);
|
734
|
+
}
|
735
|
+
UPB_INLINE bool perftools_profiles_Location_has_line(const perftools_profiles_Location *msg) {
|
736
|
+
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8));
|
737
|
+
}
|
738
|
+
UPB_INLINE void perftools_profiles_Location_clear_line(const perftools_profiles_Location *msg) {
|
739
|
+
_upb_array_detach(msg, UPB_SIZE(4, 8));
|
740
|
+
}
|
741
|
+
UPB_INLINE const perftools_profiles_Line *const *
|
742
|
+
perftools_profiles_Location_line(const perftools_profiles_Location *msg, size_t *len) {
|
743
|
+
return (const perftools_profiles_Line *const *)_upb_array_accessor(msg, UPB_SIZE(4, 8), len);
|
744
|
+
}
|
745
|
+
UPB_INLINE void perftools_profiles_Location_clear_is_folded(const perftools_profiles_Location *msg) {
|
746
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = 0;
|
747
|
+
}
|
748
|
+
UPB_INLINE bool perftools_profiles_Location_is_folded(const perftools_profiles_Location *msg) {
|
749
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool);
|
750
|
+
}
|
751
|
+
|
752
|
+
UPB_INLINE void perftools_profiles_Location_set_id(perftools_profiles_Location *msg, uint64_t value) {
|
753
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), uint64_t) = value;
|
754
|
+
}
|
755
|
+
UPB_INLINE void perftools_profiles_Location_set_mapping_id(perftools_profiles_Location *msg, uint64_t value) {
|
756
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), uint64_t) = value;
|
757
|
+
}
|
758
|
+
UPB_INLINE void perftools_profiles_Location_set_address(perftools_profiles_Location *msg, uint64_t value) {
|
759
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 32), uint64_t) = value;
|
760
|
+
}
|
761
|
+
UPB_INLINE perftools_profiles_Line **perftools_profiles_Location_mutable_line(perftools_profiles_Location *msg,
|
762
|
+
size_t *len) {
|
763
|
+
return (perftools_profiles_Line **)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len);
|
764
|
+
}
|
765
|
+
UPB_INLINE perftools_profiles_Line **perftools_profiles_Location_resize_line(perftools_profiles_Location *msg,
|
766
|
+
size_t len, upb_Arena *arena) {
|
767
|
+
return (perftools_profiles_Line **)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena);
|
768
|
+
}
|
769
|
+
UPB_INLINE struct perftools_profiles_Line *perftools_profiles_Location_add_line(perftools_profiles_Location *msg,
|
770
|
+
upb_Arena *arena) {
|
771
|
+
struct perftools_profiles_Line *sub =
|
772
|
+
(struct perftools_profiles_Line *)_upb_Message_New(&perftools_profiles_Line_msginit, arena);
|
773
|
+
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena);
|
774
|
+
if (!ok)
|
775
|
+
return NULL;
|
776
|
+
return sub;
|
777
|
+
}
|
778
|
+
UPB_INLINE void perftools_profiles_Location_set_is_folded(perftools_profiles_Location *msg, bool value) {
|
779
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = value;
|
780
|
+
}
|
781
|
+
|
782
|
+
/* perftools.profiles.Line */
|
783
|
+
|
784
|
+
UPB_INLINE perftools_profiles_Line *perftools_profiles_Line_new(upb_Arena *arena) {
|
785
|
+
return (perftools_profiles_Line *)_upb_Message_New(&perftools_profiles_Line_msginit, arena);
|
786
|
+
}
|
787
|
+
UPB_INLINE perftools_profiles_Line *perftools_profiles_Line_parse(const char *buf, size_t size, upb_Arena *arena) {
|
788
|
+
perftools_profiles_Line *ret = perftools_profiles_Line_new(arena);
|
789
|
+
if (!ret)
|
790
|
+
return NULL;
|
791
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Line_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
|
792
|
+
return NULL;
|
793
|
+
}
|
794
|
+
return ret;
|
795
|
+
}
|
796
|
+
UPB_INLINE perftools_profiles_Line *perftools_profiles_Line_parse_ex(const char *buf, size_t size,
|
797
|
+
const upb_ExtensionRegistry *extreg, int options,
|
798
|
+
upb_Arena *arena) {
|
799
|
+
perftools_profiles_Line *ret = perftools_profiles_Line_new(arena);
|
800
|
+
if (!ret)
|
801
|
+
return NULL;
|
802
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Line_msginit, extreg, options, arena) != kUpb_DecodeStatus_Ok) {
|
803
|
+
return NULL;
|
804
|
+
}
|
805
|
+
return ret;
|
806
|
+
}
|
807
|
+
UPB_INLINE char *perftools_profiles_Line_serialize(const perftools_profiles_Line *msg, upb_Arena *arena, size_t *len) {
|
808
|
+
return upb_Encode(msg, &perftools_profiles_Line_msginit, 0, arena, len);
|
809
|
+
}
|
810
|
+
UPB_INLINE char *perftools_profiles_Line_serialize_ex(const perftools_profiles_Line *msg, int options, upb_Arena *arena,
|
811
|
+
size_t *len) {
|
812
|
+
return upb_Encode(msg, &perftools_profiles_Line_msginit, options, arena, len);
|
813
|
+
}
|
814
|
+
UPB_INLINE void perftools_profiles_Line_clear_function_id(const perftools_profiles_Line *msg) {
|
815
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t) = 0;
|
816
|
+
}
|
817
|
+
UPB_INLINE uint64_t perftools_profiles_Line_function_id(const perftools_profiles_Line *msg) {
|
818
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t);
|
819
|
+
}
|
820
|
+
UPB_INLINE void perftools_profiles_Line_clear_line(const perftools_profiles_Line *msg) {
|
821
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = 0;
|
822
|
+
}
|
823
|
+
UPB_INLINE int64_t perftools_profiles_Line_line(const perftools_profiles_Line *msg) {
|
824
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t);
|
825
|
+
}
|
826
|
+
|
827
|
+
UPB_INLINE void perftools_profiles_Line_set_function_id(perftools_profiles_Line *msg, uint64_t value) {
|
828
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t) = value;
|
829
|
+
}
|
830
|
+
UPB_INLINE void perftools_profiles_Line_set_line(perftools_profiles_Line *msg, int64_t value) {
|
831
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
|
832
|
+
}
|
833
|
+
|
834
|
+
/* perftools.profiles.Function */
|
835
|
+
|
836
|
+
UPB_INLINE perftools_profiles_Function *perftools_profiles_Function_new(upb_Arena *arena) {
|
837
|
+
return (perftools_profiles_Function *)_upb_Message_New(&perftools_profiles_Function_msginit, arena);
|
838
|
+
}
|
839
|
+
UPB_INLINE perftools_profiles_Function *perftools_profiles_Function_parse(const char *buf, size_t size,
|
840
|
+
upb_Arena *arena) {
|
841
|
+
perftools_profiles_Function *ret = perftools_profiles_Function_new(arena);
|
842
|
+
if (!ret)
|
843
|
+
return NULL;
|
844
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Function_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) {
|
845
|
+
return NULL;
|
846
|
+
}
|
847
|
+
return ret;
|
848
|
+
}
|
849
|
+
UPB_INLINE perftools_profiles_Function *perftools_profiles_Function_parse_ex(const char *buf, size_t size,
|
850
|
+
const upb_ExtensionRegistry *extreg,
|
851
|
+
int options, upb_Arena *arena) {
|
852
|
+
perftools_profiles_Function *ret = perftools_profiles_Function_new(arena);
|
853
|
+
if (!ret)
|
854
|
+
return NULL;
|
855
|
+
if (upb_Decode(buf, size, ret, &perftools_profiles_Function_msginit, extreg, options, arena) !=
|
856
|
+
kUpb_DecodeStatus_Ok) {
|
857
|
+
return NULL;
|
858
|
+
}
|
859
|
+
return ret;
|
860
|
+
}
|
861
|
+
UPB_INLINE char *perftools_profiles_Function_serialize(const perftools_profiles_Function *msg, upb_Arena *arena,
|
862
|
+
size_t *len) {
|
863
|
+
return upb_Encode(msg, &perftools_profiles_Function_msginit, 0, arena, len);
|
864
|
+
}
|
865
|
+
UPB_INLINE char *perftools_profiles_Function_serialize_ex(const perftools_profiles_Function *msg, int options,
|
866
|
+
upb_Arena *arena, size_t *len) {
|
867
|
+
return upb_Encode(msg, &perftools_profiles_Function_msginit, options, arena, len);
|
868
|
+
}
|
869
|
+
UPB_INLINE void perftools_profiles_Function_clear_id(const perftools_profiles_Function *msg) {
|
870
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t) = 0;
|
871
|
+
}
|
872
|
+
UPB_INLINE uint64_t perftools_profiles_Function_id(const perftools_profiles_Function *msg) {
|
873
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t);
|
874
|
+
}
|
875
|
+
UPB_INLINE void perftools_profiles_Function_clear_name(const perftools_profiles_Function *msg) {
|
876
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = 0;
|
877
|
+
}
|
878
|
+
UPB_INLINE int64_t perftools_profiles_Function_name(const perftools_profiles_Function *msg) {
|
879
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t);
|
880
|
+
}
|
881
|
+
UPB_INLINE void perftools_profiles_Function_clear_system_name(const perftools_profiles_Function *msg) {
|
882
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = 0;
|
883
|
+
}
|
884
|
+
UPB_INLINE int64_t perftools_profiles_Function_system_name(const perftools_profiles_Function *msg) {
|
885
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t);
|
886
|
+
}
|
887
|
+
UPB_INLINE void perftools_profiles_Function_clear_filename(const perftools_profiles_Function *msg) {
|
888
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = 0;
|
889
|
+
}
|
890
|
+
UPB_INLINE int64_t perftools_profiles_Function_filename(const perftools_profiles_Function *msg) {
|
891
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t);
|
892
|
+
}
|
893
|
+
UPB_INLINE void perftools_profiles_Function_clear_start_line(const perftools_profiles_Function *msg) {
|
894
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t) = 0;
|
895
|
+
}
|
896
|
+
UPB_INLINE int64_t perftools_profiles_Function_start_line(const perftools_profiles_Function *msg) {
|
897
|
+
return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t);
|
898
|
+
}
|
899
|
+
|
900
|
+
UPB_INLINE void perftools_profiles_Function_set_id(perftools_profiles_Function *msg, uint64_t value) {
|
901
|
+
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), uint64_t) = value;
|
902
|
+
}
|
903
|
+
UPB_INLINE void perftools_profiles_Function_set_name(perftools_profiles_Function *msg, int64_t value) {
|
904
|
+
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
|
905
|
+
}
|
906
|
+
UPB_INLINE void perftools_profiles_Function_set_system_name(perftools_profiles_Function *msg, int64_t value) {
|
907
|
+
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = value;
|
908
|
+
}
|
909
|
+
UPB_INLINE void perftools_profiles_Function_set_filename(perftools_profiles_Function *msg, int64_t value) {
|
910
|
+
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = value;
|
911
|
+
}
|
912
|
+
UPB_INLINE void perftools_profiles_Function_set_start_line(perftools_profiles_Function *msg, int64_t value) {
|
913
|
+
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t) = value;
|
914
|
+
}
|
915
|
+
|
916
|
+
extern const upb_MiniTable_File pprof_proto_upb_file_layout;
|
917
|
+
|
918
|
+
#ifdef __cplusplus
|
919
|
+
} /* extern "C" */
|
920
|
+
#endif
|
921
|
+
|
922
|
+
#include "upb/port_undef.inc"
|
923
|
+
|
924
|
+
#endif /* PPROF_PROTO_UPB_H_ */
|