Debian Codegraph @

compiler/natives/src/runtime/pprof/pprof.go

raw
1 // +build js
2
3 package pprof
4
5 import (
6 "io"
7 "sync"
8 )
9
10 type Profile struct {
11 name string
12 mu sync.Mutex
13 m map[interface{}][]uintptr
14 count func() int
15 write func(io.Writer, int) error
16 }
17
18 func (p *Profile) WriteTo(w io.Writer, debug int) error {
19 return nil
20 }
21
22 func (p *Profile) Count() int {
23 return 0
24 }
25
26 func (p *Profile) Name() string {
27 return ""
28 }
29
30 func (p *Profile) Add(value interface{}, skip int) {
31 }
32
33 func (p *Profile) Remove(value interface{}) {
34 }
35
36 func StartCPUProfile(w io.Writer) error {
37 return nil
38 }
39
40 func StopCPUProfile() {
41 }
42
43 func WriteHeapProfile(w io.Writer) error {
44 return nil
45 }
46
47 func Lookup(name string) *Profile {
48 return nil
49 }