easyjson.go 49 KB

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