ruby_memprofiler_pprof 0.0.1

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