easyjson.go 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package heapprofiler
  3. import (
  4. json "encoding/json"
  5. runtime "github.com/chromedp/cdproto/runtime"
  6. easyjson "github.com/mailru/easyjson"
  7. jlexer "github.com/mailru/easyjson/jlexer"
  8. jwriter "github.com/mailru/easyjson/jwriter"
  9. )
  10. // suppress unused package warning
  11. var (
  12. _ *json.RawMessage
  13. _ *jlexer.Lexer
  14. _ *jwriter.Writer
  15. _ easyjson.Marshaler
  16. )
  17. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler(in *jlexer.Lexer, out *TakeHeapSnapshotParams) {
  18. isTopLevel := in.IsStart()
  19. if in.IsNull() {
  20. if isTopLevel {
  21. in.Consumed()
  22. }
  23. in.Skip()
  24. return
  25. }
  26. in.Delim('{')
  27. for !in.IsDelim('}') {
  28. key := in.UnsafeFieldName(false)
  29. in.WantColon()
  30. if in.IsNull() {
  31. in.Skip()
  32. in.WantComma()
  33. continue
  34. }
  35. switch key {
  36. case "reportProgress":
  37. out.ReportProgress = bool(in.Bool())
  38. case "captureNumericValue":
  39. out.CaptureNumericValue = bool(in.Bool())
  40. case "exposeInternals":
  41. out.ExposeInternals = bool(in.Bool())
  42. default:
  43. in.SkipRecursive()
  44. }
  45. in.WantComma()
  46. }
  47. in.Delim('}')
  48. if isTopLevel {
  49. in.Consumed()
  50. }
  51. }
  52. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler(out *jwriter.Writer, in TakeHeapSnapshotParams) {
  53. out.RawByte('{')
  54. first := true
  55. _ = first
  56. if in.ReportProgress {
  57. const prefix string = ",\"reportProgress\":"
  58. first = false
  59. out.RawString(prefix[1:])
  60. out.Bool(bool(in.ReportProgress))
  61. }
  62. if in.CaptureNumericValue {
  63. const prefix string = ",\"captureNumericValue\":"
  64. if first {
  65. first = false
  66. out.RawString(prefix[1:])
  67. } else {
  68. out.RawString(prefix)
  69. }
  70. out.Bool(bool(in.CaptureNumericValue))
  71. }
  72. if in.ExposeInternals {
  73. const prefix string = ",\"exposeInternals\":"
  74. if first {
  75. first = false
  76. out.RawString(prefix[1:])
  77. } else {
  78. out.RawString(prefix)
  79. }
  80. out.Bool(bool(in.ExposeInternals))
  81. }
  82. out.RawByte('}')
  83. }
  84. // MarshalJSON supports json.Marshaler interface
  85. func (v TakeHeapSnapshotParams) MarshalJSON() ([]byte, error) {
  86. w := jwriter.Writer{}
  87. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler(&w, v)
  88. return w.Buffer.BuildBytes(), w.Error
  89. }
  90. // MarshalEasyJSON supports easyjson.Marshaler interface
  91. func (v TakeHeapSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) {
  92. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler(w, v)
  93. }
  94. // UnmarshalJSON supports json.Unmarshaler interface
  95. func (v *TakeHeapSnapshotParams) UnmarshalJSON(data []byte) error {
  96. r := jlexer.Lexer{Data: data}
  97. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler(&r, v)
  98. return r.Error()
  99. }
  100. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  101. func (v *TakeHeapSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  102. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler(l, v)
  103. }
  104. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler1(in *jlexer.Lexer, out *StopTrackingHeapObjectsParams) {
  105. isTopLevel := in.IsStart()
  106. if in.IsNull() {
  107. if isTopLevel {
  108. in.Consumed()
  109. }
  110. in.Skip()
  111. return
  112. }
  113. in.Delim('{')
  114. for !in.IsDelim('}') {
  115. key := in.UnsafeFieldName(false)
  116. in.WantColon()
  117. if in.IsNull() {
  118. in.Skip()
  119. in.WantComma()
  120. continue
  121. }
  122. switch key {
  123. case "reportProgress":
  124. out.ReportProgress = bool(in.Bool())
  125. case "captureNumericValue":
  126. out.CaptureNumericValue = bool(in.Bool())
  127. case "exposeInternals":
  128. out.ExposeInternals = bool(in.Bool())
  129. default:
  130. in.SkipRecursive()
  131. }
  132. in.WantComma()
  133. }
  134. in.Delim('}')
  135. if isTopLevel {
  136. in.Consumed()
  137. }
  138. }
  139. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler1(out *jwriter.Writer, in StopTrackingHeapObjectsParams) {
  140. out.RawByte('{')
  141. first := true
  142. _ = first
  143. if in.ReportProgress {
  144. const prefix string = ",\"reportProgress\":"
  145. first = false
  146. out.RawString(prefix[1:])
  147. out.Bool(bool(in.ReportProgress))
  148. }
  149. if in.CaptureNumericValue {
  150. const prefix string = ",\"captureNumericValue\":"
  151. if first {
  152. first = false
  153. out.RawString(prefix[1:])
  154. } else {
  155. out.RawString(prefix)
  156. }
  157. out.Bool(bool(in.CaptureNumericValue))
  158. }
  159. if in.ExposeInternals {
  160. const prefix string = ",\"exposeInternals\":"
  161. if first {
  162. first = false
  163. out.RawString(prefix[1:])
  164. } else {
  165. out.RawString(prefix)
  166. }
  167. out.Bool(bool(in.ExposeInternals))
  168. }
  169. out.RawByte('}')
  170. }
  171. // MarshalJSON supports json.Marshaler interface
  172. func (v StopTrackingHeapObjectsParams) MarshalJSON() ([]byte, error) {
  173. w := jwriter.Writer{}
  174. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler1(&w, v)
  175. return w.Buffer.BuildBytes(), w.Error
  176. }
  177. // MarshalEasyJSON supports easyjson.Marshaler interface
  178. func (v StopTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer) {
  179. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler1(w, v)
  180. }
  181. // UnmarshalJSON supports json.Unmarshaler interface
  182. func (v *StopTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error {
  183. r := jlexer.Lexer{Data: data}
  184. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler1(&r, v)
  185. return r.Error()
  186. }
  187. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  188. func (v *StopTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  189. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler1(l, v)
  190. }
  191. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler2(in *jlexer.Lexer, out *StopSamplingReturns) {
  192. isTopLevel := in.IsStart()
  193. if in.IsNull() {
  194. if isTopLevel {
  195. in.Consumed()
  196. }
  197. in.Skip()
  198. return
  199. }
  200. in.Delim('{')
  201. for !in.IsDelim('}') {
  202. key := in.UnsafeFieldName(false)
  203. in.WantColon()
  204. if in.IsNull() {
  205. in.Skip()
  206. in.WantComma()
  207. continue
  208. }
  209. switch key {
  210. case "profile":
  211. if in.IsNull() {
  212. in.Skip()
  213. out.Profile = nil
  214. } else {
  215. if out.Profile == nil {
  216. out.Profile = new(SamplingHeapProfile)
  217. }
  218. (*out.Profile).UnmarshalEasyJSON(in)
  219. }
  220. default:
  221. in.SkipRecursive()
  222. }
  223. in.WantComma()
  224. }
  225. in.Delim('}')
  226. if isTopLevel {
  227. in.Consumed()
  228. }
  229. }
  230. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler2(out *jwriter.Writer, in StopSamplingReturns) {
  231. out.RawByte('{')
  232. first := true
  233. _ = first
  234. if in.Profile != nil {
  235. const prefix string = ",\"profile\":"
  236. first = false
  237. out.RawString(prefix[1:])
  238. (*in.Profile).MarshalEasyJSON(out)
  239. }
  240. out.RawByte('}')
  241. }
  242. // MarshalJSON supports json.Marshaler interface
  243. func (v StopSamplingReturns) MarshalJSON() ([]byte, error) {
  244. w := jwriter.Writer{}
  245. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler2(&w, v)
  246. return w.Buffer.BuildBytes(), w.Error
  247. }
  248. // MarshalEasyJSON supports easyjson.Marshaler interface
  249. func (v StopSamplingReturns) MarshalEasyJSON(w *jwriter.Writer) {
  250. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler2(w, v)
  251. }
  252. // UnmarshalJSON supports json.Unmarshaler interface
  253. func (v *StopSamplingReturns) UnmarshalJSON(data []byte) error {
  254. r := jlexer.Lexer{Data: data}
  255. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler2(&r, v)
  256. return r.Error()
  257. }
  258. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  259. func (v *StopSamplingReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  260. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler2(l, v)
  261. }
  262. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler3(in *jlexer.Lexer, out *StopSamplingParams) {
  263. isTopLevel := in.IsStart()
  264. if in.IsNull() {
  265. if isTopLevel {
  266. in.Consumed()
  267. }
  268. in.Skip()
  269. return
  270. }
  271. in.Delim('{')
  272. for !in.IsDelim('}') {
  273. key := in.UnsafeFieldName(false)
  274. in.WantColon()
  275. if in.IsNull() {
  276. in.Skip()
  277. in.WantComma()
  278. continue
  279. }
  280. switch key {
  281. default:
  282. in.SkipRecursive()
  283. }
  284. in.WantComma()
  285. }
  286. in.Delim('}')
  287. if isTopLevel {
  288. in.Consumed()
  289. }
  290. }
  291. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler3(out *jwriter.Writer, in StopSamplingParams) {
  292. out.RawByte('{')
  293. first := true
  294. _ = first
  295. out.RawByte('}')
  296. }
  297. // MarshalJSON supports json.Marshaler interface
  298. func (v StopSamplingParams) MarshalJSON() ([]byte, error) {
  299. w := jwriter.Writer{}
  300. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler3(&w, v)
  301. return w.Buffer.BuildBytes(), w.Error
  302. }
  303. // MarshalEasyJSON supports easyjson.Marshaler interface
  304. func (v StopSamplingParams) MarshalEasyJSON(w *jwriter.Writer) {
  305. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler3(w, v)
  306. }
  307. // UnmarshalJSON supports json.Unmarshaler interface
  308. func (v *StopSamplingParams) UnmarshalJSON(data []byte) error {
  309. r := jlexer.Lexer{Data: data}
  310. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler3(&r, v)
  311. return r.Error()
  312. }
  313. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  314. func (v *StopSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  315. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler3(l, v)
  316. }
  317. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler4(in *jlexer.Lexer, out *StartTrackingHeapObjectsParams) {
  318. isTopLevel := in.IsStart()
  319. if in.IsNull() {
  320. if isTopLevel {
  321. in.Consumed()
  322. }
  323. in.Skip()
  324. return
  325. }
  326. in.Delim('{')
  327. for !in.IsDelim('}') {
  328. key := in.UnsafeFieldName(false)
  329. in.WantColon()
  330. if in.IsNull() {
  331. in.Skip()
  332. in.WantComma()
  333. continue
  334. }
  335. switch key {
  336. case "trackAllocations":
  337. out.TrackAllocations = bool(in.Bool())
  338. default:
  339. in.SkipRecursive()
  340. }
  341. in.WantComma()
  342. }
  343. in.Delim('}')
  344. if isTopLevel {
  345. in.Consumed()
  346. }
  347. }
  348. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler4(out *jwriter.Writer, in StartTrackingHeapObjectsParams) {
  349. out.RawByte('{')
  350. first := true
  351. _ = first
  352. if in.TrackAllocations {
  353. const prefix string = ",\"trackAllocations\":"
  354. first = false
  355. out.RawString(prefix[1:])
  356. out.Bool(bool(in.TrackAllocations))
  357. }
  358. out.RawByte('}')
  359. }
  360. // MarshalJSON supports json.Marshaler interface
  361. func (v StartTrackingHeapObjectsParams) MarshalJSON() ([]byte, error) {
  362. w := jwriter.Writer{}
  363. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler4(&w, v)
  364. return w.Buffer.BuildBytes(), w.Error
  365. }
  366. // MarshalEasyJSON supports easyjson.Marshaler interface
  367. func (v StartTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer) {
  368. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler4(w, v)
  369. }
  370. // UnmarshalJSON supports json.Unmarshaler interface
  371. func (v *StartTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error {
  372. r := jlexer.Lexer{Data: data}
  373. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler4(&r, v)
  374. return r.Error()
  375. }
  376. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  377. func (v *StartTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  378. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler4(l, v)
  379. }
  380. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler5(in *jlexer.Lexer, out *StartSamplingParams) {
  381. isTopLevel := in.IsStart()
  382. if in.IsNull() {
  383. if isTopLevel {
  384. in.Consumed()
  385. }
  386. in.Skip()
  387. return
  388. }
  389. in.Delim('{')
  390. for !in.IsDelim('}') {
  391. key := in.UnsafeFieldName(false)
  392. in.WantColon()
  393. if in.IsNull() {
  394. in.Skip()
  395. in.WantComma()
  396. continue
  397. }
  398. switch key {
  399. case "samplingInterval":
  400. out.SamplingInterval = float64(in.Float64())
  401. case "includeObjectsCollectedByMajorGC":
  402. out.IncludeObjectsCollectedByMajorGC = bool(in.Bool())
  403. case "includeObjectsCollectedByMinorGC":
  404. out.IncludeObjectsCollectedByMinorGC = bool(in.Bool())
  405. default:
  406. in.SkipRecursive()
  407. }
  408. in.WantComma()
  409. }
  410. in.Delim('}')
  411. if isTopLevel {
  412. in.Consumed()
  413. }
  414. }
  415. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler5(out *jwriter.Writer, in StartSamplingParams) {
  416. out.RawByte('{')
  417. first := true
  418. _ = first
  419. if in.SamplingInterval != 0 {
  420. const prefix string = ",\"samplingInterval\":"
  421. first = false
  422. out.RawString(prefix[1:])
  423. out.Float64(float64(in.SamplingInterval))
  424. }
  425. if in.IncludeObjectsCollectedByMajorGC {
  426. const prefix string = ",\"includeObjectsCollectedByMajorGC\":"
  427. if first {
  428. first = false
  429. out.RawString(prefix[1:])
  430. } else {
  431. out.RawString(prefix)
  432. }
  433. out.Bool(bool(in.IncludeObjectsCollectedByMajorGC))
  434. }
  435. if in.IncludeObjectsCollectedByMinorGC {
  436. const prefix string = ",\"includeObjectsCollectedByMinorGC\":"
  437. if first {
  438. first = false
  439. out.RawString(prefix[1:])
  440. } else {
  441. out.RawString(prefix)
  442. }
  443. out.Bool(bool(in.IncludeObjectsCollectedByMinorGC))
  444. }
  445. out.RawByte('}')
  446. }
  447. // MarshalJSON supports json.Marshaler interface
  448. func (v StartSamplingParams) MarshalJSON() ([]byte, error) {
  449. w := jwriter.Writer{}
  450. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler5(&w, v)
  451. return w.Buffer.BuildBytes(), w.Error
  452. }
  453. // MarshalEasyJSON supports easyjson.Marshaler interface
  454. func (v StartSamplingParams) MarshalEasyJSON(w *jwriter.Writer) {
  455. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler5(w, v)
  456. }
  457. // UnmarshalJSON supports json.Unmarshaler interface
  458. func (v *StartSamplingParams) UnmarshalJSON(data []byte) error {
  459. r := jlexer.Lexer{Data: data}
  460. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler5(&r, v)
  461. return r.Error()
  462. }
  463. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  464. func (v *StartSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  465. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler5(l, v)
  466. }
  467. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler6(in *jlexer.Lexer, out *SamplingHeapProfileSample) {
  468. isTopLevel := in.IsStart()
  469. if in.IsNull() {
  470. if isTopLevel {
  471. in.Consumed()
  472. }
  473. in.Skip()
  474. return
  475. }
  476. in.Delim('{')
  477. for !in.IsDelim('}') {
  478. key := in.UnsafeFieldName(false)
  479. in.WantColon()
  480. if in.IsNull() {
  481. in.Skip()
  482. in.WantComma()
  483. continue
  484. }
  485. switch key {
  486. case "size":
  487. out.Size = float64(in.Float64())
  488. case "nodeId":
  489. out.NodeID = int64(in.Int64())
  490. case "ordinal":
  491. out.Ordinal = float64(in.Float64())
  492. default:
  493. in.SkipRecursive()
  494. }
  495. in.WantComma()
  496. }
  497. in.Delim('}')
  498. if isTopLevel {
  499. in.Consumed()
  500. }
  501. }
  502. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler6(out *jwriter.Writer, in SamplingHeapProfileSample) {
  503. out.RawByte('{')
  504. first := true
  505. _ = first
  506. {
  507. const prefix string = ",\"size\":"
  508. out.RawString(prefix[1:])
  509. out.Float64(float64(in.Size))
  510. }
  511. {
  512. const prefix string = ",\"nodeId\":"
  513. out.RawString(prefix)
  514. out.Int64(int64(in.NodeID))
  515. }
  516. {
  517. const prefix string = ",\"ordinal\":"
  518. out.RawString(prefix)
  519. out.Float64(float64(in.Ordinal))
  520. }
  521. out.RawByte('}')
  522. }
  523. // MarshalJSON supports json.Marshaler interface
  524. func (v SamplingHeapProfileSample) MarshalJSON() ([]byte, error) {
  525. w := jwriter.Writer{}
  526. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler6(&w, v)
  527. return w.Buffer.BuildBytes(), w.Error
  528. }
  529. // MarshalEasyJSON supports easyjson.Marshaler interface
  530. func (v SamplingHeapProfileSample) MarshalEasyJSON(w *jwriter.Writer) {
  531. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler6(w, v)
  532. }
  533. // UnmarshalJSON supports json.Unmarshaler interface
  534. func (v *SamplingHeapProfileSample) UnmarshalJSON(data []byte) error {
  535. r := jlexer.Lexer{Data: data}
  536. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler6(&r, v)
  537. return r.Error()
  538. }
  539. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  540. func (v *SamplingHeapProfileSample) UnmarshalEasyJSON(l *jlexer.Lexer) {
  541. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler6(l, v)
  542. }
  543. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler7(in *jlexer.Lexer, out *SamplingHeapProfileNode) {
  544. isTopLevel := in.IsStart()
  545. if in.IsNull() {
  546. if isTopLevel {
  547. in.Consumed()
  548. }
  549. in.Skip()
  550. return
  551. }
  552. in.Delim('{')
  553. for !in.IsDelim('}') {
  554. key := in.UnsafeFieldName(false)
  555. in.WantColon()
  556. if in.IsNull() {
  557. in.Skip()
  558. in.WantComma()
  559. continue
  560. }
  561. switch key {
  562. case "callFrame":
  563. if in.IsNull() {
  564. in.Skip()
  565. out.CallFrame = nil
  566. } else {
  567. if out.CallFrame == nil {
  568. out.CallFrame = new(runtime.CallFrame)
  569. }
  570. (*out.CallFrame).UnmarshalEasyJSON(in)
  571. }
  572. case "selfSize":
  573. out.SelfSize = float64(in.Float64())
  574. case "id":
  575. out.ID = int64(in.Int64())
  576. case "children":
  577. if in.IsNull() {
  578. in.Skip()
  579. out.Children = nil
  580. } else {
  581. in.Delim('[')
  582. if out.Children == nil {
  583. if !in.IsDelim(']') {
  584. out.Children = make([]*SamplingHeapProfileNode, 0, 8)
  585. } else {
  586. out.Children = []*SamplingHeapProfileNode{}
  587. }
  588. } else {
  589. out.Children = (out.Children)[:0]
  590. }
  591. for !in.IsDelim(']') {
  592. var v1 *SamplingHeapProfileNode
  593. if in.IsNull() {
  594. in.Skip()
  595. v1 = nil
  596. } else {
  597. if v1 == nil {
  598. v1 = new(SamplingHeapProfileNode)
  599. }
  600. (*v1).UnmarshalEasyJSON(in)
  601. }
  602. out.Children = append(out.Children, v1)
  603. in.WantComma()
  604. }
  605. in.Delim(']')
  606. }
  607. default:
  608. in.SkipRecursive()
  609. }
  610. in.WantComma()
  611. }
  612. in.Delim('}')
  613. if isTopLevel {
  614. in.Consumed()
  615. }
  616. }
  617. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler7(out *jwriter.Writer, in SamplingHeapProfileNode) {
  618. out.RawByte('{')
  619. first := true
  620. _ = first
  621. {
  622. const prefix string = ",\"callFrame\":"
  623. out.RawString(prefix[1:])
  624. if in.CallFrame == nil {
  625. out.RawString("null")
  626. } else {
  627. (*in.CallFrame).MarshalEasyJSON(out)
  628. }
  629. }
  630. {
  631. const prefix string = ",\"selfSize\":"
  632. out.RawString(prefix)
  633. out.Float64(float64(in.SelfSize))
  634. }
  635. {
  636. const prefix string = ",\"id\":"
  637. out.RawString(prefix)
  638. out.Int64(int64(in.ID))
  639. }
  640. {
  641. const prefix string = ",\"children\":"
  642. out.RawString(prefix)
  643. if in.Children == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  644. out.RawString("null")
  645. } else {
  646. out.RawByte('[')
  647. for v2, v3 := range in.Children {
  648. if v2 > 0 {
  649. out.RawByte(',')
  650. }
  651. if v3 == nil {
  652. out.RawString("null")
  653. } else {
  654. (*v3).MarshalEasyJSON(out)
  655. }
  656. }
  657. out.RawByte(']')
  658. }
  659. }
  660. out.RawByte('}')
  661. }
  662. // MarshalJSON supports json.Marshaler interface
  663. func (v SamplingHeapProfileNode) MarshalJSON() ([]byte, error) {
  664. w := jwriter.Writer{}
  665. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler7(&w, v)
  666. return w.Buffer.BuildBytes(), w.Error
  667. }
  668. // MarshalEasyJSON supports easyjson.Marshaler interface
  669. func (v SamplingHeapProfileNode) MarshalEasyJSON(w *jwriter.Writer) {
  670. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler7(w, v)
  671. }
  672. // UnmarshalJSON supports json.Unmarshaler interface
  673. func (v *SamplingHeapProfileNode) UnmarshalJSON(data []byte) error {
  674. r := jlexer.Lexer{Data: data}
  675. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler7(&r, v)
  676. return r.Error()
  677. }
  678. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  679. func (v *SamplingHeapProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer) {
  680. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler7(l, v)
  681. }
  682. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler8(in *jlexer.Lexer, out *SamplingHeapProfile) {
  683. isTopLevel := in.IsStart()
  684. if in.IsNull() {
  685. if isTopLevel {
  686. in.Consumed()
  687. }
  688. in.Skip()
  689. return
  690. }
  691. in.Delim('{')
  692. for !in.IsDelim('}') {
  693. key := in.UnsafeFieldName(false)
  694. in.WantColon()
  695. if in.IsNull() {
  696. in.Skip()
  697. in.WantComma()
  698. continue
  699. }
  700. switch key {
  701. case "head":
  702. if in.IsNull() {
  703. in.Skip()
  704. out.Head = nil
  705. } else {
  706. if out.Head == nil {
  707. out.Head = new(SamplingHeapProfileNode)
  708. }
  709. (*out.Head).UnmarshalEasyJSON(in)
  710. }
  711. case "samples":
  712. if in.IsNull() {
  713. in.Skip()
  714. out.Samples = nil
  715. } else {
  716. in.Delim('[')
  717. if out.Samples == nil {
  718. if !in.IsDelim(']') {
  719. out.Samples = make([]*SamplingHeapProfileSample, 0, 8)
  720. } else {
  721. out.Samples = []*SamplingHeapProfileSample{}
  722. }
  723. } else {
  724. out.Samples = (out.Samples)[:0]
  725. }
  726. for !in.IsDelim(']') {
  727. var v4 *SamplingHeapProfileSample
  728. if in.IsNull() {
  729. in.Skip()
  730. v4 = nil
  731. } else {
  732. if v4 == nil {
  733. v4 = new(SamplingHeapProfileSample)
  734. }
  735. (*v4).UnmarshalEasyJSON(in)
  736. }
  737. out.Samples = append(out.Samples, v4)
  738. in.WantComma()
  739. }
  740. in.Delim(']')
  741. }
  742. default:
  743. in.SkipRecursive()
  744. }
  745. in.WantComma()
  746. }
  747. in.Delim('}')
  748. if isTopLevel {
  749. in.Consumed()
  750. }
  751. }
  752. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler8(out *jwriter.Writer, in SamplingHeapProfile) {
  753. out.RawByte('{')
  754. first := true
  755. _ = first
  756. {
  757. const prefix string = ",\"head\":"
  758. out.RawString(prefix[1:])
  759. if in.Head == nil {
  760. out.RawString("null")
  761. } else {
  762. (*in.Head).MarshalEasyJSON(out)
  763. }
  764. }
  765. {
  766. const prefix string = ",\"samples\":"
  767. out.RawString(prefix)
  768. if in.Samples == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  769. out.RawString("null")
  770. } else {
  771. out.RawByte('[')
  772. for v5, v6 := range in.Samples {
  773. if v5 > 0 {
  774. out.RawByte(',')
  775. }
  776. if v6 == nil {
  777. out.RawString("null")
  778. } else {
  779. (*v6).MarshalEasyJSON(out)
  780. }
  781. }
  782. out.RawByte(']')
  783. }
  784. }
  785. out.RawByte('}')
  786. }
  787. // MarshalJSON supports json.Marshaler interface
  788. func (v SamplingHeapProfile) MarshalJSON() ([]byte, error) {
  789. w := jwriter.Writer{}
  790. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler8(&w, v)
  791. return w.Buffer.BuildBytes(), w.Error
  792. }
  793. // MarshalEasyJSON supports easyjson.Marshaler interface
  794. func (v SamplingHeapProfile) MarshalEasyJSON(w *jwriter.Writer) {
  795. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler8(w, v)
  796. }
  797. // UnmarshalJSON supports json.Unmarshaler interface
  798. func (v *SamplingHeapProfile) UnmarshalJSON(data []byte) error {
  799. r := jlexer.Lexer{Data: data}
  800. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler8(&r, v)
  801. return r.Error()
  802. }
  803. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  804. func (v *SamplingHeapProfile) UnmarshalEasyJSON(l *jlexer.Lexer) {
  805. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler8(l, v)
  806. }
  807. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler9(in *jlexer.Lexer, out *GetSamplingProfileReturns) {
  808. isTopLevel := in.IsStart()
  809. if in.IsNull() {
  810. if isTopLevel {
  811. in.Consumed()
  812. }
  813. in.Skip()
  814. return
  815. }
  816. in.Delim('{')
  817. for !in.IsDelim('}') {
  818. key := in.UnsafeFieldName(false)
  819. in.WantColon()
  820. if in.IsNull() {
  821. in.Skip()
  822. in.WantComma()
  823. continue
  824. }
  825. switch key {
  826. case "profile":
  827. if in.IsNull() {
  828. in.Skip()
  829. out.Profile = nil
  830. } else {
  831. if out.Profile == nil {
  832. out.Profile = new(SamplingHeapProfile)
  833. }
  834. (*out.Profile).UnmarshalEasyJSON(in)
  835. }
  836. default:
  837. in.SkipRecursive()
  838. }
  839. in.WantComma()
  840. }
  841. in.Delim('}')
  842. if isTopLevel {
  843. in.Consumed()
  844. }
  845. }
  846. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler9(out *jwriter.Writer, in GetSamplingProfileReturns) {
  847. out.RawByte('{')
  848. first := true
  849. _ = first
  850. if in.Profile != nil {
  851. const prefix string = ",\"profile\":"
  852. first = false
  853. out.RawString(prefix[1:])
  854. (*in.Profile).MarshalEasyJSON(out)
  855. }
  856. out.RawByte('}')
  857. }
  858. // MarshalJSON supports json.Marshaler interface
  859. func (v GetSamplingProfileReturns) MarshalJSON() ([]byte, error) {
  860. w := jwriter.Writer{}
  861. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler9(&w, v)
  862. return w.Buffer.BuildBytes(), w.Error
  863. }
  864. // MarshalEasyJSON supports easyjson.Marshaler interface
  865. func (v GetSamplingProfileReturns) MarshalEasyJSON(w *jwriter.Writer) {
  866. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler9(w, v)
  867. }
  868. // UnmarshalJSON supports json.Unmarshaler interface
  869. func (v *GetSamplingProfileReturns) UnmarshalJSON(data []byte) error {
  870. r := jlexer.Lexer{Data: data}
  871. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler9(&r, v)
  872. return r.Error()
  873. }
  874. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  875. func (v *GetSamplingProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  876. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler9(l, v)
  877. }
  878. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler10(in *jlexer.Lexer, out *GetSamplingProfileParams) {
  879. isTopLevel := in.IsStart()
  880. if in.IsNull() {
  881. if isTopLevel {
  882. in.Consumed()
  883. }
  884. in.Skip()
  885. return
  886. }
  887. in.Delim('{')
  888. for !in.IsDelim('}') {
  889. key := in.UnsafeFieldName(false)
  890. in.WantColon()
  891. if in.IsNull() {
  892. in.Skip()
  893. in.WantComma()
  894. continue
  895. }
  896. switch key {
  897. default:
  898. in.SkipRecursive()
  899. }
  900. in.WantComma()
  901. }
  902. in.Delim('}')
  903. if isTopLevel {
  904. in.Consumed()
  905. }
  906. }
  907. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler10(out *jwriter.Writer, in GetSamplingProfileParams) {
  908. out.RawByte('{')
  909. first := true
  910. _ = first
  911. out.RawByte('}')
  912. }
  913. // MarshalJSON supports json.Marshaler interface
  914. func (v GetSamplingProfileParams) MarshalJSON() ([]byte, error) {
  915. w := jwriter.Writer{}
  916. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler10(&w, v)
  917. return w.Buffer.BuildBytes(), w.Error
  918. }
  919. // MarshalEasyJSON supports easyjson.Marshaler interface
  920. func (v GetSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer) {
  921. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler10(w, v)
  922. }
  923. // UnmarshalJSON supports json.Unmarshaler interface
  924. func (v *GetSamplingProfileParams) UnmarshalJSON(data []byte) error {
  925. r := jlexer.Lexer{Data: data}
  926. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler10(&r, v)
  927. return r.Error()
  928. }
  929. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  930. func (v *GetSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  931. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler10(l, v)
  932. }
  933. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler11(in *jlexer.Lexer, out *GetObjectByHeapObjectIDReturns) {
  934. isTopLevel := in.IsStart()
  935. if in.IsNull() {
  936. if isTopLevel {
  937. in.Consumed()
  938. }
  939. in.Skip()
  940. return
  941. }
  942. in.Delim('{')
  943. for !in.IsDelim('}') {
  944. key := in.UnsafeFieldName(false)
  945. in.WantColon()
  946. if in.IsNull() {
  947. in.Skip()
  948. in.WantComma()
  949. continue
  950. }
  951. switch key {
  952. case "result":
  953. if in.IsNull() {
  954. in.Skip()
  955. out.Result = nil
  956. } else {
  957. if out.Result == nil {
  958. out.Result = new(runtime.RemoteObject)
  959. }
  960. (*out.Result).UnmarshalEasyJSON(in)
  961. }
  962. default:
  963. in.SkipRecursive()
  964. }
  965. in.WantComma()
  966. }
  967. in.Delim('}')
  968. if isTopLevel {
  969. in.Consumed()
  970. }
  971. }
  972. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler11(out *jwriter.Writer, in GetObjectByHeapObjectIDReturns) {
  973. out.RawByte('{')
  974. first := true
  975. _ = first
  976. if in.Result != nil {
  977. const prefix string = ",\"result\":"
  978. first = false
  979. out.RawString(prefix[1:])
  980. (*in.Result).MarshalEasyJSON(out)
  981. }
  982. out.RawByte('}')
  983. }
  984. // MarshalJSON supports json.Marshaler interface
  985. func (v GetObjectByHeapObjectIDReturns) MarshalJSON() ([]byte, error) {
  986. w := jwriter.Writer{}
  987. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler11(&w, v)
  988. return w.Buffer.BuildBytes(), w.Error
  989. }
  990. // MarshalEasyJSON supports easyjson.Marshaler interface
  991. func (v GetObjectByHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer) {
  992. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler11(w, v)
  993. }
  994. // UnmarshalJSON supports json.Unmarshaler interface
  995. func (v *GetObjectByHeapObjectIDReturns) UnmarshalJSON(data []byte) error {
  996. r := jlexer.Lexer{Data: data}
  997. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler11(&r, v)
  998. return r.Error()
  999. }
  1000. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1001. func (v *GetObjectByHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1002. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler11(l, v)
  1003. }
  1004. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler12(in *jlexer.Lexer, out *GetObjectByHeapObjectIDParams) {
  1005. isTopLevel := in.IsStart()
  1006. if in.IsNull() {
  1007. if isTopLevel {
  1008. in.Consumed()
  1009. }
  1010. in.Skip()
  1011. return
  1012. }
  1013. in.Delim('{')
  1014. for !in.IsDelim('}') {
  1015. key := in.UnsafeFieldName(false)
  1016. in.WantColon()
  1017. if in.IsNull() {
  1018. in.Skip()
  1019. in.WantComma()
  1020. continue
  1021. }
  1022. switch key {
  1023. case "objectId":
  1024. out.ObjectID = HeapSnapshotObjectID(in.String())
  1025. case "objectGroup":
  1026. out.ObjectGroup = string(in.String())
  1027. default:
  1028. in.SkipRecursive()
  1029. }
  1030. in.WantComma()
  1031. }
  1032. in.Delim('}')
  1033. if isTopLevel {
  1034. in.Consumed()
  1035. }
  1036. }
  1037. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler12(out *jwriter.Writer, in GetObjectByHeapObjectIDParams) {
  1038. out.RawByte('{')
  1039. first := true
  1040. _ = first
  1041. {
  1042. const prefix string = ",\"objectId\":"
  1043. out.RawString(prefix[1:])
  1044. out.String(string(in.ObjectID))
  1045. }
  1046. if in.ObjectGroup != "" {
  1047. const prefix string = ",\"objectGroup\":"
  1048. out.RawString(prefix)
  1049. out.String(string(in.ObjectGroup))
  1050. }
  1051. out.RawByte('}')
  1052. }
  1053. // MarshalJSON supports json.Marshaler interface
  1054. func (v GetObjectByHeapObjectIDParams) MarshalJSON() ([]byte, error) {
  1055. w := jwriter.Writer{}
  1056. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler12(&w, v)
  1057. return w.Buffer.BuildBytes(), w.Error
  1058. }
  1059. // MarshalEasyJSON supports easyjson.Marshaler interface
  1060. func (v GetObjectByHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer) {
  1061. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler12(w, v)
  1062. }
  1063. // UnmarshalJSON supports json.Unmarshaler interface
  1064. func (v *GetObjectByHeapObjectIDParams) UnmarshalJSON(data []byte) error {
  1065. r := jlexer.Lexer{Data: data}
  1066. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler12(&r, v)
  1067. return r.Error()
  1068. }
  1069. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1070. func (v *GetObjectByHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1071. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler12(l, v)
  1072. }
  1073. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler13(in *jlexer.Lexer, out *GetHeapObjectIDReturns) {
  1074. isTopLevel := in.IsStart()
  1075. if in.IsNull() {
  1076. if isTopLevel {
  1077. in.Consumed()
  1078. }
  1079. in.Skip()
  1080. return
  1081. }
  1082. in.Delim('{')
  1083. for !in.IsDelim('}') {
  1084. key := in.UnsafeFieldName(false)
  1085. in.WantColon()
  1086. if in.IsNull() {
  1087. in.Skip()
  1088. in.WantComma()
  1089. continue
  1090. }
  1091. switch key {
  1092. case "heapSnapshotObjectId":
  1093. out.HeapSnapshotObjectID = HeapSnapshotObjectID(in.String())
  1094. default:
  1095. in.SkipRecursive()
  1096. }
  1097. in.WantComma()
  1098. }
  1099. in.Delim('}')
  1100. if isTopLevel {
  1101. in.Consumed()
  1102. }
  1103. }
  1104. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler13(out *jwriter.Writer, in GetHeapObjectIDReturns) {
  1105. out.RawByte('{')
  1106. first := true
  1107. _ = first
  1108. if in.HeapSnapshotObjectID != "" {
  1109. const prefix string = ",\"heapSnapshotObjectId\":"
  1110. first = false
  1111. out.RawString(prefix[1:])
  1112. out.String(string(in.HeapSnapshotObjectID))
  1113. }
  1114. out.RawByte('}')
  1115. }
  1116. // MarshalJSON supports json.Marshaler interface
  1117. func (v GetHeapObjectIDReturns) MarshalJSON() ([]byte, error) {
  1118. w := jwriter.Writer{}
  1119. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler13(&w, v)
  1120. return w.Buffer.BuildBytes(), w.Error
  1121. }
  1122. // MarshalEasyJSON supports easyjson.Marshaler interface
  1123. func (v GetHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1124. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler13(w, v)
  1125. }
  1126. // UnmarshalJSON supports json.Unmarshaler interface
  1127. func (v *GetHeapObjectIDReturns) UnmarshalJSON(data []byte) error {
  1128. r := jlexer.Lexer{Data: data}
  1129. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler13(&r, v)
  1130. return r.Error()
  1131. }
  1132. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1133. func (v *GetHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1134. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler13(l, v)
  1135. }
  1136. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler14(in *jlexer.Lexer, out *GetHeapObjectIDParams) {
  1137. isTopLevel := in.IsStart()
  1138. if in.IsNull() {
  1139. if isTopLevel {
  1140. in.Consumed()
  1141. }
  1142. in.Skip()
  1143. return
  1144. }
  1145. in.Delim('{')
  1146. for !in.IsDelim('}') {
  1147. key := in.UnsafeFieldName(false)
  1148. in.WantColon()
  1149. if in.IsNull() {
  1150. in.Skip()
  1151. in.WantComma()
  1152. continue
  1153. }
  1154. switch key {
  1155. case "objectId":
  1156. out.ObjectID = runtime.RemoteObjectID(in.String())
  1157. default:
  1158. in.SkipRecursive()
  1159. }
  1160. in.WantComma()
  1161. }
  1162. in.Delim('}')
  1163. if isTopLevel {
  1164. in.Consumed()
  1165. }
  1166. }
  1167. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler14(out *jwriter.Writer, in GetHeapObjectIDParams) {
  1168. out.RawByte('{')
  1169. first := true
  1170. _ = first
  1171. {
  1172. const prefix string = ",\"objectId\":"
  1173. out.RawString(prefix[1:])
  1174. out.String(string(in.ObjectID))
  1175. }
  1176. out.RawByte('}')
  1177. }
  1178. // MarshalJSON supports json.Marshaler interface
  1179. func (v GetHeapObjectIDParams) MarshalJSON() ([]byte, error) {
  1180. w := jwriter.Writer{}
  1181. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler14(&w, v)
  1182. return w.Buffer.BuildBytes(), w.Error
  1183. }
  1184. // MarshalEasyJSON supports easyjson.Marshaler interface
  1185. func (v GetHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer) {
  1186. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler14(w, v)
  1187. }
  1188. // UnmarshalJSON supports json.Unmarshaler interface
  1189. func (v *GetHeapObjectIDParams) UnmarshalJSON(data []byte) error {
  1190. r := jlexer.Lexer{Data: data}
  1191. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler14(&r, v)
  1192. return r.Error()
  1193. }
  1194. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1195. func (v *GetHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1196. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler14(l, v)
  1197. }
  1198. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler15(in *jlexer.Lexer, out *EventResetProfiles) {
  1199. isTopLevel := in.IsStart()
  1200. if in.IsNull() {
  1201. if isTopLevel {
  1202. in.Consumed()
  1203. }
  1204. in.Skip()
  1205. return
  1206. }
  1207. in.Delim('{')
  1208. for !in.IsDelim('}') {
  1209. key := in.UnsafeFieldName(false)
  1210. in.WantColon()
  1211. if in.IsNull() {
  1212. in.Skip()
  1213. in.WantComma()
  1214. continue
  1215. }
  1216. switch key {
  1217. default:
  1218. in.SkipRecursive()
  1219. }
  1220. in.WantComma()
  1221. }
  1222. in.Delim('}')
  1223. if isTopLevel {
  1224. in.Consumed()
  1225. }
  1226. }
  1227. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler15(out *jwriter.Writer, in EventResetProfiles) {
  1228. out.RawByte('{')
  1229. first := true
  1230. _ = first
  1231. out.RawByte('}')
  1232. }
  1233. // MarshalJSON supports json.Marshaler interface
  1234. func (v EventResetProfiles) MarshalJSON() ([]byte, error) {
  1235. w := jwriter.Writer{}
  1236. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler15(&w, v)
  1237. return w.Buffer.BuildBytes(), w.Error
  1238. }
  1239. // MarshalEasyJSON supports easyjson.Marshaler interface
  1240. func (v EventResetProfiles) MarshalEasyJSON(w *jwriter.Writer) {
  1241. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler15(w, v)
  1242. }
  1243. // UnmarshalJSON supports json.Unmarshaler interface
  1244. func (v *EventResetProfiles) UnmarshalJSON(data []byte) error {
  1245. r := jlexer.Lexer{Data: data}
  1246. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler15(&r, v)
  1247. return r.Error()
  1248. }
  1249. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1250. func (v *EventResetProfiles) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1251. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler15(l, v)
  1252. }
  1253. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler16(in *jlexer.Lexer, out *EventReportHeapSnapshotProgress) {
  1254. isTopLevel := in.IsStart()
  1255. if in.IsNull() {
  1256. if isTopLevel {
  1257. in.Consumed()
  1258. }
  1259. in.Skip()
  1260. return
  1261. }
  1262. in.Delim('{')
  1263. for !in.IsDelim('}') {
  1264. key := in.UnsafeFieldName(false)
  1265. in.WantColon()
  1266. if in.IsNull() {
  1267. in.Skip()
  1268. in.WantComma()
  1269. continue
  1270. }
  1271. switch key {
  1272. case "done":
  1273. out.Done = int64(in.Int64())
  1274. case "total":
  1275. out.Total = int64(in.Int64())
  1276. case "finished":
  1277. out.Finished = bool(in.Bool())
  1278. default:
  1279. in.SkipRecursive()
  1280. }
  1281. in.WantComma()
  1282. }
  1283. in.Delim('}')
  1284. if isTopLevel {
  1285. in.Consumed()
  1286. }
  1287. }
  1288. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler16(out *jwriter.Writer, in EventReportHeapSnapshotProgress) {
  1289. out.RawByte('{')
  1290. first := true
  1291. _ = first
  1292. {
  1293. const prefix string = ",\"done\":"
  1294. out.RawString(prefix[1:])
  1295. out.Int64(int64(in.Done))
  1296. }
  1297. {
  1298. const prefix string = ",\"total\":"
  1299. out.RawString(prefix)
  1300. out.Int64(int64(in.Total))
  1301. }
  1302. if in.Finished {
  1303. const prefix string = ",\"finished\":"
  1304. out.RawString(prefix)
  1305. out.Bool(bool(in.Finished))
  1306. }
  1307. out.RawByte('}')
  1308. }
  1309. // MarshalJSON supports json.Marshaler interface
  1310. func (v EventReportHeapSnapshotProgress) MarshalJSON() ([]byte, error) {
  1311. w := jwriter.Writer{}
  1312. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler16(&w, v)
  1313. return w.Buffer.BuildBytes(), w.Error
  1314. }
  1315. // MarshalEasyJSON supports easyjson.Marshaler interface
  1316. func (v EventReportHeapSnapshotProgress) MarshalEasyJSON(w *jwriter.Writer) {
  1317. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler16(w, v)
  1318. }
  1319. // UnmarshalJSON supports json.Unmarshaler interface
  1320. func (v *EventReportHeapSnapshotProgress) UnmarshalJSON(data []byte) error {
  1321. r := jlexer.Lexer{Data: data}
  1322. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler16(&r, v)
  1323. return r.Error()
  1324. }
  1325. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1326. func (v *EventReportHeapSnapshotProgress) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1327. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler16(l, v)
  1328. }
  1329. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler17(in *jlexer.Lexer, out *EventLastSeenObjectID) {
  1330. isTopLevel := in.IsStart()
  1331. if in.IsNull() {
  1332. if isTopLevel {
  1333. in.Consumed()
  1334. }
  1335. in.Skip()
  1336. return
  1337. }
  1338. in.Delim('{')
  1339. for !in.IsDelim('}') {
  1340. key := in.UnsafeFieldName(false)
  1341. in.WantColon()
  1342. if in.IsNull() {
  1343. in.Skip()
  1344. in.WantComma()
  1345. continue
  1346. }
  1347. switch key {
  1348. case "lastSeenObjectId":
  1349. out.LastSeenObjectID = int64(in.Int64())
  1350. case "timestamp":
  1351. out.Timestamp = float64(in.Float64())
  1352. default:
  1353. in.SkipRecursive()
  1354. }
  1355. in.WantComma()
  1356. }
  1357. in.Delim('}')
  1358. if isTopLevel {
  1359. in.Consumed()
  1360. }
  1361. }
  1362. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler17(out *jwriter.Writer, in EventLastSeenObjectID) {
  1363. out.RawByte('{')
  1364. first := true
  1365. _ = first
  1366. {
  1367. const prefix string = ",\"lastSeenObjectId\":"
  1368. out.RawString(prefix[1:])
  1369. out.Int64(int64(in.LastSeenObjectID))
  1370. }
  1371. {
  1372. const prefix string = ",\"timestamp\":"
  1373. out.RawString(prefix)
  1374. out.Float64(float64(in.Timestamp))
  1375. }
  1376. out.RawByte('}')
  1377. }
  1378. // MarshalJSON supports json.Marshaler interface
  1379. func (v EventLastSeenObjectID) MarshalJSON() ([]byte, error) {
  1380. w := jwriter.Writer{}
  1381. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler17(&w, v)
  1382. return w.Buffer.BuildBytes(), w.Error
  1383. }
  1384. // MarshalEasyJSON supports easyjson.Marshaler interface
  1385. func (v EventLastSeenObjectID) MarshalEasyJSON(w *jwriter.Writer) {
  1386. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler17(w, v)
  1387. }
  1388. // UnmarshalJSON supports json.Unmarshaler interface
  1389. func (v *EventLastSeenObjectID) UnmarshalJSON(data []byte) error {
  1390. r := jlexer.Lexer{Data: data}
  1391. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler17(&r, v)
  1392. return r.Error()
  1393. }
  1394. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1395. func (v *EventLastSeenObjectID) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1396. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler17(l, v)
  1397. }
  1398. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler18(in *jlexer.Lexer, out *EventHeapStatsUpdate) {
  1399. isTopLevel := in.IsStart()
  1400. if in.IsNull() {
  1401. if isTopLevel {
  1402. in.Consumed()
  1403. }
  1404. in.Skip()
  1405. return
  1406. }
  1407. in.Delim('{')
  1408. for !in.IsDelim('}') {
  1409. key := in.UnsafeFieldName(false)
  1410. in.WantColon()
  1411. if in.IsNull() {
  1412. in.Skip()
  1413. in.WantComma()
  1414. continue
  1415. }
  1416. switch key {
  1417. case "statsUpdate":
  1418. if in.IsNull() {
  1419. in.Skip()
  1420. out.StatsUpdate = nil
  1421. } else {
  1422. in.Delim('[')
  1423. if out.StatsUpdate == nil {
  1424. if !in.IsDelim(']') {
  1425. out.StatsUpdate = make([]int64, 0, 8)
  1426. } else {
  1427. out.StatsUpdate = []int64{}
  1428. }
  1429. } else {
  1430. out.StatsUpdate = (out.StatsUpdate)[:0]
  1431. }
  1432. for !in.IsDelim(']') {
  1433. var v7 int64
  1434. v7 = int64(in.Int64())
  1435. out.StatsUpdate = append(out.StatsUpdate, v7)
  1436. in.WantComma()
  1437. }
  1438. in.Delim(']')
  1439. }
  1440. default:
  1441. in.SkipRecursive()
  1442. }
  1443. in.WantComma()
  1444. }
  1445. in.Delim('}')
  1446. if isTopLevel {
  1447. in.Consumed()
  1448. }
  1449. }
  1450. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler18(out *jwriter.Writer, in EventHeapStatsUpdate) {
  1451. out.RawByte('{')
  1452. first := true
  1453. _ = first
  1454. {
  1455. const prefix string = ",\"statsUpdate\":"
  1456. out.RawString(prefix[1:])
  1457. if in.StatsUpdate == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1458. out.RawString("null")
  1459. } else {
  1460. out.RawByte('[')
  1461. for v8, v9 := range in.StatsUpdate {
  1462. if v8 > 0 {
  1463. out.RawByte(',')
  1464. }
  1465. out.Int64(int64(v9))
  1466. }
  1467. out.RawByte(']')
  1468. }
  1469. }
  1470. out.RawByte('}')
  1471. }
  1472. // MarshalJSON supports json.Marshaler interface
  1473. func (v EventHeapStatsUpdate) MarshalJSON() ([]byte, error) {
  1474. w := jwriter.Writer{}
  1475. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler18(&w, v)
  1476. return w.Buffer.BuildBytes(), w.Error
  1477. }
  1478. // MarshalEasyJSON supports easyjson.Marshaler interface
  1479. func (v EventHeapStatsUpdate) MarshalEasyJSON(w *jwriter.Writer) {
  1480. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler18(w, v)
  1481. }
  1482. // UnmarshalJSON supports json.Unmarshaler interface
  1483. func (v *EventHeapStatsUpdate) UnmarshalJSON(data []byte) error {
  1484. r := jlexer.Lexer{Data: data}
  1485. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler18(&r, v)
  1486. return r.Error()
  1487. }
  1488. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1489. func (v *EventHeapStatsUpdate) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1490. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler18(l, v)
  1491. }
  1492. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler19(in *jlexer.Lexer, out *EventAddHeapSnapshotChunk) {
  1493. isTopLevel := in.IsStart()
  1494. if in.IsNull() {
  1495. if isTopLevel {
  1496. in.Consumed()
  1497. }
  1498. in.Skip()
  1499. return
  1500. }
  1501. in.Delim('{')
  1502. for !in.IsDelim('}') {
  1503. key := in.UnsafeFieldName(false)
  1504. in.WantColon()
  1505. if in.IsNull() {
  1506. in.Skip()
  1507. in.WantComma()
  1508. continue
  1509. }
  1510. switch key {
  1511. case "chunk":
  1512. out.Chunk = string(in.String())
  1513. default:
  1514. in.SkipRecursive()
  1515. }
  1516. in.WantComma()
  1517. }
  1518. in.Delim('}')
  1519. if isTopLevel {
  1520. in.Consumed()
  1521. }
  1522. }
  1523. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler19(out *jwriter.Writer, in EventAddHeapSnapshotChunk) {
  1524. out.RawByte('{')
  1525. first := true
  1526. _ = first
  1527. {
  1528. const prefix string = ",\"chunk\":"
  1529. out.RawString(prefix[1:])
  1530. out.String(string(in.Chunk))
  1531. }
  1532. out.RawByte('}')
  1533. }
  1534. // MarshalJSON supports json.Marshaler interface
  1535. func (v EventAddHeapSnapshotChunk) MarshalJSON() ([]byte, error) {
  1536. w := jwriter.Writer{}
  1537. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler19(&w, v)
  1538. return w.Buffer.BuildBytes(), w.Error
  1539. }
  1540. // MarshalEasyJSON supports easyjson.Marshaler interface
  1541. func (v EventAddHeapSnapshotChunk) MarshalEasyJSON(w *jwriter.Writer) {
  1542. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler19(w, v)
  1543. }
  1544. // UnmarshalJSON supports json.Unmarshaler interface
  1545. func (v *EventAddHeapSnapshotChunk) UnmarshalJSON(data []byte) error {
  1546. r := jlexer.Lexer{Data: data}
  1547. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler19(&r, v)
  1548. return r.Error()
  1549. }
  1550. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1551. func (v *EventAddHeapSnapshotChunk) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1552. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler19(l, v)
  1553. }
  1554. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler20(in *jlexer.Lexer, out *EnableParams) {
  1555. isTopLevel := in.IsStart()
  1556. if in.IsNull() {
  1557. if isTopLevel {
  1558. in.Consumed()
  1559. }
  1560. in.Skip()
  1561. return
  1562. }
  1563. in.Delim('{')
  1564. for !in.IsDelim('}') {
  1565. key := in.UnsafeFieldName(false)
  1566. in.WantColon()
  1567. if in.IsNull() {
  1568. in.Skip()
  1569. in.WantComma()
  1570. continue
  1571. }
  1572. switch key {
  1573. default:
  1574. in.SkipRecursive()
  1575. }
  1576. in.WantComma()
  1577. }
  1578. in.Delim('}')
  1579. if isTopLevel {
  1580. in.Consumed()
  1581. }
  1582. }
  1583. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler20(out *jwriter.Writer, in EnableParams) {
  1584. out.RawByte('{')
  1585. first := true
  1586. _ = first
  1587. out.RawByte('}')
  1588. }
  1589. // MarshalJSON supports json.Marshaler interface
  1590. func (v EnableParams) MarshalJSON() ([]byte, error) {
  1591. w := jwriter.Writer{}
  1592. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler20(&w, v)
  1593. return w.Buffer.BuildBytes(), w.Error
  1594. }
  1595. // MarshalEasyJSON supports easyjson.Marshaler interface
  1596. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  1597. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler20(w, v)
  1598. }
  1599. // UnmarshalJSON supports json.Unmarshaler interface
  1600. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  1601. r := jlexer.Lexer{Data: data}
  1602. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler20(&r, v)
  1603. return r.Error()
  1604. }
  1605. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1606. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1607. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler20(l, v)
  1608. }
  1609. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler21(in *jlexer.Lexer, out *DisableParams) {
  1610. isTopLevel := in.IsStart()
  1611. if in.IsNull() {
  1612. if isTopLevel {
  1613. in.Consumed()
  1614. }
  1615. in.Skip()
  1616. return
  1617. }
  1618. in.Delim('{')
  1619. for !in.IsDelim('}') {
  1620. key := in.UnsafeFieldName(false)
  1621. in.WantColon()
  1622. if in.IsNull() {
  1623. in.Skip()
  1624. in.WantComma()
  1625. continue
  1626. }
  1627. switch key {
  1628. default:
  1629. in.SkipRecursive()
  1630. }
  1631. in.WantComma()
  1632. }
  1633. in.Delim('}')
  1634. if isTopLevel {
  1635. in.Consumed()
  1636. }
  1637. }
  1638. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler21(out *jwriter.Writer, in DisableParams) {
  1639. out.RawByte('{')
  1640. first := true
  1641. _ = first
  1642. out.RawByte('}')
  1643. }
  1644. // MarshalJSON supports json.Marshaler interface
  1645. func (v DisableParams) MarshalJSON() ([]byte, error) {
  1646. w := jwriter.Writer{}
  1647. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler21(&w, v)
  1648. return w.Buffer.BuildBytes(), w.Error
  1649. }
  1650. // MarshalEasyJSON supports easyjson.Marshaler interface
  1651. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  1652. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler21(w, v)
  1653. }
  1654. // UnmarshalJSON supports json.Unmarshaler interface
  1655. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  1656. r := jlexer.Lexer{Data: data}
  1657. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler21(&r, v)
  1658. return r.Error()
  1659. }
  1660. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1661. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1662. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler21(l, v)
  1663. }
  1664. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler22(in *jlexer.Lexer, out *CollectGarbageParams) {
  1665. isTopLevel := in.IsStart()
  1666. if in.IsNull() {
  1667. if isTopLevel {
  1668. in.Consumed()
  1669. }
  1670. in.Skip()
  1671. return
  1672. }
  1673. in.Delim('{')
  1674. for !in.IsDelim('}') {
  1675. key := in.UnsafeFieldName(false)
  1676. in.WantColon()
  1677. if in.IsNull() {
  1678. in.Skip()
  1679. in.WantComma()
  1680. continue
  1681. }
  1682. switch key {
  1683. default:
  1684. in.SkipRecursive()
  1685. }
  1686. in.WantComma()
  1687. }
  1688. in.Delim('}')
  1689. if isTopLevel {
  1690. in.Consumed()
  1691. }
  1692. }
  1693. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler22(out *jwriter.Writer, in CollectGarbageParams) {
  1694. out.RawByte('{')
  1695. first := true
  1696. _ = first
  1697. out.RawByte('}')
  1698. }
  1699. // MarshalJSON supports json.Marshaler interface
  1700. func (v CollectGarbageParams) MarshalJSON() ([]byte, error) {
  1701. w := jwriter.Writer{}
  1702. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler22(&w, v)
  1703. return w.Buffer.BuildBytes(), w.Error
  1704. }
  1705. // MarshalEasyJSON supports easyjson.Marshaler interface
  1706. func (v CollectGarbageParams) MarshalEasyJSON(w *jwriter.Writer) {
  1707. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler22(w, v)
  1708. }
  1709. // UnmarshalJSON supports json.Unmarshaler interface
  1710. func (v *CollectGarbageParams) UnmarshalJSON(data []byte) error {
  1711. r := jlexer.Lexer{Data: data}
  1712. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler22(&r, v)
  1713. return r.Error()
  1714. }
  1715. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1716. func (v *CollectGarbageParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1717. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler22(l, v)
  1718. }
  1719. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler23(in *jlexer.Lexer, out *AddInspectedHeapObjectParams) {
  1720. isTopLevel := in.IsStart()
  1721. if in.IsNull() {
  1722. if isTopLevel {
  1723. in.Consumed()
  1724. }
  1725. in.Skip()
  1726. return
  1727. }
  1728. in.Delim('{')
  1729. for !in.IsDelim('}') {
  1730. key := in.UnsafeFieldName(false)
  1731. in.WantColon()
  1732. if in.IsNull() {
  1733. in.Skip()
  1734. in.WantComma()
  1735. continue
  1736. }
  1737. switch key {
  1738. case "heapObjectId":
  1739. out.HeapObjectID = HeapSnapshotObjectID(in.String())
  1740. default:
  1741. in.SkipRecursive()
  1742. }
  1743. in.WantComma()
  1744. }
  1745. in.Delim('}')
  1746. if isTopLevel {
  1747. in.Consumed()
  1748. }
  1749. }
  1750. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler23(out *jwriter.Writer, in AddInspectedHeapObjectParams) {
  1751. out.RawByte('{')
  1752. first := true
  1753. _ = first
  1754. {
  1755. const prefix string = ",\"heapObjectId\":"
  1756. out.RawString(prefix[1:])
  1757. out.String(string(in.HeapObjectID))
  1758. }
  1759. out.RawByte('}')
  1760. }
  1761. // MarshalJSON supports json.Marshaler interface
  1762. func (v AddInspectedHeapObjectParams) MarshalJSON() ([]byte, error) {
  1763. w := jwriter.Writer{}
  1764. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler23(&w, v)
  1765. return w.Buffer.BuildBytes(), w.Error
  1766. }
  1767. // MarshalEasyJSON supports easyjson.Marshaler interface
  1768. func (v AddInspectedHeapObjectParams) MarshalEasyJSON(w *jwriter.Writer) {
  1769. easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler23(w, v)
  1770. }
  1771. // UnmarshalJSON supports json.Unmarshaler interface
  1772. func (v *AddInspectedHeapObjectParams) UnmarshalJSON(data []byte) error {
  1773. r := jlexer.Lexer{Data: data}
  1774. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler23(&r, v)
  1775. return r.Error()
  1776. }
  1777. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1778. func (v *AddInspectedHeapObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1779. easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler23(l, v)
  1780. }