pprof

clearing-cloud cpu
File: clearing-cloud
Type: cpu
Time: Sep 21, 2023 at 6:54am (UTC)
Duration: 30.11s, Total samples = 59.95s (199.08%)
Save options as
Delete config

runtime.sellock

/usr/local/go/src/runtime/select.go

  Total:       4.15s     12.80s (flat, cum) 21.35%
     33        1.12s      1.12s           ??? 
     35        1.14s      1.14s           ??? 
     36        1.28s      1.28s           ??? 
     37         10ms       10ms           ??? 
     39        310ms      8.96s           ???                                                                                                                            lock_futex.go:48
                                                                                                                           lockrank_off.go:22
                                     ⋮
                                     ⋮
                                                                                                                           lock_futex.go:48
                                                                                                                           lockrank_off.go:22

     42        290ms      290ms           ??? 

runtime.selunlock

/usr/local/go/src/runtime/select.go

  Total:       2.75s     13.09s (flat, cum) 21.83%
     44        680ms      680ms           ??? 
     53        410ms      410ms           ??? 
     54           1s         1s           ??? 
     55         70ms       70ms           ??? 
     58        270ms     10.61s           ???                                                                                  lock_futex.go:112
                                                                                                                           lockrank_off.go:32
     60        320ms      320ms           ??? 

runtime.selectgo

/usr/local/go/src/runtime/select.go

  Total:      20.17s     32.97s (flat, cum) 55.00%
    121        2.30s      2.30s           ??? 
    131        250ms      250ms           ??? 
    132        150ms      150ms           ??? 
    133         10ms       10ms           ??? 
    134        760ms      760ms           ??? 
    153        850ms      850ms           ??? 
    167        420ms      420ms           ??? 
    168        210ms      210ms           ??? 
    171        1.24s      1.24s           ??? 
    172        490ms      490ms           ??? 
    176        1.57s      1.57s           ???                                                                                                                            stubs.go:154
                                                                                                                           stubs.go:133                                                                                 stubs.go:125                                                                                 stubs.go:134
                                     ⋮
                                     ⋮
                                                                                                                           stubs.go:154
                                                                                                                           stubs.go:132
                                     ⋮
                                     ⋮
                                     ⋮
                                                                                                                           stubs.go:132
                                     ⋮
                                     ⋮
                                                                                                                           stubs.go:133                                                                                 stubs.go:132
                                     ⋮
                                     ⋮
                                                                                                                           stubs.go:133
                                     ⋮
                                     ⋮
                                     ⋮
                                                                                                                           stubs.go:154

    177        1.26s      1.26s           ??? 
    178        150ms      150ms           ??? 
    179        270ms      270ms           ??? 
    181        300ms      300ms           ??? 
    186        720ms      720ms           ??? 
    189        850ms      850ms           ??? 
    190        700ms      700ms           ??? 
    192        280ms      280ms           ??? 
    195        720ms      720ms           ??? 
    197        610ms      610ms           ??? 
    198        370ms      370ms           ??? 
    199        710ms      710ms           ??? 
    200        620ms      620ms           ??? 
    202        160ms      160ms           ??? 
    204        230ms      230ms           ??? 
    217        560ms      560ms           ??? 
    230        420ms     13.22s           ??? 
    249        1.08s      1.08s           ??? 
    251        320ms      320ms           ??? 
    252        130ms      130ms           ??? 
    254        240ms      240ms           ??? 
    255        380ms      380ms           ???                                                                                                                            chan.go:772                                                                                 chan.go:773                                                                                 chan.go:771

    256        370ms      370ms           ??? 
    259         40ms       40ms           ??? 
    262        430ms      430ms           ??? 

runtime.selectgo

/usr/local/go/src/runtime/select.go

  Total:       1.13s     18.08s (flat, cum) 30.16%
    479        520ms     13.61s           ??? 
    481        600ms      600ms           ??? 
    482            .      3.86s           ??? 
    487         10ms       10ms           ??? 

runtime.selectgo

/usr/local/go/src/runtime/select.go

  Total:       890ms      890ms (flat, cum)  1.48%
    508        270ms      270ms           ??? 
    510        620ms      620ms           ??? 

runtime.lock

/usr/local/go/src/runtime/lock_futex.go

  Total:        70ms      8.72s (flat, cum) 14.55%
     48         70ms      8.72s           ???                                                                                                                            lockrank_off.go:22

runtime.lock2

/usr/local/go/src/runtime/lock_futex.go

  Total:       8.65s      8.65s (flat, cum) 14.43%
     51        560ms      560ms           ??? 
     52        110ms      110ms           ??? 
     54        290ms      290ms           ??? 
     57        170ms      170ms           ??? 
     60        220ms      220ms           ??? 
     61        7.03s      7.03s           ??? 
     62        270ms      270ms           ??? 

runtime.unlock

/usr/local/go/src/runtime/lock_futex.go

  Total:           0     10.34s (flat, cum) 17.25%
    112            .     10.34s           ???                                                                                                                            lockrank_off.go:32

runtime.unlock2

/usr/local/go/src/runtime/lock_futex.go

  Total:      10.34s     10.34s (flat, cum) 17.25%
    115        410ms      410ms           ??? 
    116        8.37s      8.37s           ??? 
    117        420ms      420ms           ??? 
    126        790ms      790ms           ??? 
    132        350ms      350ms           ??? 

runtime.duffzero

/usr/local/go/src/runtime/duff_amd64.s

  Total:       1.01s      1.01s (flat, cum)  1.68%
     92        120ms      120ms           ??? 
     93         40ms       40ms           ??? 
     94         60ms       60ms           ??? 
     95         40ms       40ms           ??? 
     96        180ms      180ms           ??? 
     99         70ms       70ms           ??? 
    100        120ms      120ms           ??? 
    101        170ms      170ms           ??? 
    102        110ms      110ms           ??? 
    104        100ms      100ms           ??? 

runtime.duffcopy

/usr/local/go/src/runtime/duff_amd64.s

  Total:       2.89s      2.89s (flat, cum)  4.82%
    387        200ms      200ms           ??? 
    388         60ms       60ms           ??? 
    390        160ms      160ms           ??? 
    392         10ms       10ms           ??? 
    393         80ms       80ms           ??? 
    395        260ms      260ms           ??? 
    398         80ms       80ms           ??? 
    400        400ms      400ms           ??? 
    403         80ms       80ms           ??? 
    405        310ms      310ms           ??? 
    408         50ms       50ms           ??? 
    410        200ms      200ms           ??? 
    413         80ms       80ms           ??? 
    415        190ms      190ms           ??? 
    418         60ms       60ms           ??? 
    420        290ms      290ms           ??? 
    423         60ms       60ms           ??? 
    425        310ms      310ms           ??? 
    427         10ms       10ms           ??? 

clearing-cloud/internal/pkg/session/etcd.(*EtcdClient).WatchJoin.func1

/builds/p-clearing-system/clearing-cloud-v2/internal/pkg/session/etcd/etcd.go

  Total:       1.27s     19.98s (flat, cum) 33.33%
    166            .       20ms           ??? 
    167        210ms     17.38s           ??? 
    170        170ms      290ms           ??? 
    172        640ms      2.04s           ??? 
    173        250ms      250ms           ??? 

clearing-cloud/internal/pkg/session/etcd.(*EtcdClient).WatchLeave.func1

/builds/p-clearing-system/clearing-cloud-v2/internal/pkg/session/etcd/etcd.go

  Total:       1.53s     19.88s (flat, cum) 33.16%
    194        290ms     16.83s           ??? 
    195        210ms      330ms           ??? 
    197        780ms      2.44s           ??? 
    198        250ms      280ms           ??? 

runtime.memclrNoHeapPointers

/usr/local/go/src/runtime/memclr_amd64.s

  Total:       1.18s      1.18s (flat, cum)  1.97%
     18        330ms      330ms           ??? 
     26        320ms      320ms           ??? 
     32         20ms       20ms           ??? 
     33        230ms      230ms           ??? 
     39         20ms       20ms           ??? 
     41        260ms      260ms           ??? 

runtime.memclrNoHeapPointers

/usr/local/go/src/runtime/memclr_amd64.s

  Total:       1.33s      1.33s (flat, cum)  2.22%
    203         30ms       30ms           ??? 
    205        210ms      210ms           ??? 
    206         50ms       50ms           ??? 
    209        330ms      330ms           ??? 
    210         20ms       20ms           ??? 
    213        380ms      380ms           ??? 
    217        300ms      300ms           ??? 
    218         10ms       10ms           ??? 

runtime.fastrand

/usr/local/go/src/runtime/stubs.go

  Total:       870ms      870ms (flat, cum)  1.45%
    125         20ms       20ms           ??? 
    132        490ms      490ms           ??? 
    133        330ms      330ms           ??? 
    134         30ms       30ms           ??? 

runtime.fastrandn

/usr/local/go/src/runtime/stubs.go

  Total:       1.44s      1.44s (flat, cum)  2.40%
    154        1.44s      1.44s           ???                                                                                                                            stubs.go:133                                                                                 stubs.go:125                                                                                 stubs.go:134                                                                                 stubs.go:132
                                     ⋮
                                     ⋮
                                     ⋮
                                                                                                                           stubs.go:132
                                     ⋮
                                     ⋮
                                                                                                                           stubs.go:133                                                                                 stubs.go:132
                                     ⋮
                                     ⋮
                                                                                                                           stubs.go:133
                                     ⋮
                                     ⋮

runtime.typedmemclr

/usr/local/go/src/runtime/mbarrier.go

  Total:       1.35s      3.86s (flat, cum)  6.44%
    317        750ms      750ms           ??? 
    321        260ms      2.77s           ??? 
    322        340ms      340ms           ??? 

git.songmaokeji.com/go-modules/etcd.(*ServiceDiscovery).watcher

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/git.fpdev.tech/go-modules/[email protected]/servdiscovery.go

  Total:       870ms        20s (flat, cum) 33.36%
     76            .       10ms           ??? 
     77        110ms     18.38s           ??? 
     80        570ms      1.42s           ??? 
     81        190ms      190ms           ??? 

runtime.(*waitq).dequeue

/usr/local/go/src/runtime/chan.go

  Total:       380ms      380ms (flat, cum)  0.63%
    771         40ms       40ms           ??? 
    772         70ms       70ms           ??? 
    773        270ms      270ms           ??? 

context.(*emptyCtx).Done

/usr/local/go/src/context/context.go

  Total:       220ms      230ms (flat, cum)  0.38%
    184        220ms      230ms           ??? 

runtime.asyncPreempt

/usr/local/go/src/runtime/preempt_amd64.s

  Total:       130ms      130ms (flat, cum)  0.22%
      8        130ms      130ms           ??? 

runtime/internal/syscall.Syscall6

/usr/local/go/src/runtime/internal/syscall/asm_linux_amd64.s

  Total:        70ms       70ms (flat, cum)  0.12%
     36         70ms       70ms           ??? 

runtime.lockWithRank

/usr/local/go/src/runtime/lockrank_off.go

  Total:        70ms      8.72s (flat, cum) 14.55%
     22         70ms      8.72s           ??? 

runtime.unlockWithRank

/usr/local/go/src/runtime/lockrank_off.go

  Total:           0     10.34s (flat, cum) 17.25%
     32            .     10.34s           ??? 

internal/poll.runtime_pollSetDeadline

/usr/local/go/src/runtime/netpoll.go

  Total:        10ms       10ms (flat, cum) 0.017%
    384         10ms       10ms           ???                                                                                                                            netpoll.go:650

runtime.(*pollDesc).makeArg

/usr/local/go/src/runtime/netpoll.go

  Total:        10ms       10ms (flat, cum) 0.017%
    650         10ms       10ms           ??? 

github.com/rcrowley/go-metrics.(*StandardMeter).Mark

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/rcrowley/[email protected]/meter.go

  Total:        10ms       10ms (flat, cum) 0.017%
    165         10ms       10ms           ??? 

net.(*conn).Read

/usr/local/go/src/net/net.go

  Total:           0       40ms (flat, cum) 0.067%
    183            .       40ms           ??? 

net.(*conn).Write

/usr/local/go/src/net/net.go

  Total:           0       30ms (flat, cum)  0.05%
    195            .       30ms           ??? 

net.(*conn).SetWriteDeadline

/usr/local/go/src/net/net.go

  Total:           0       10ms (flat, cum) 0.017%
    261            .       10ms           ???                                                                                                                            fd_posix.go:146
                                                                                                                           fd_poll_runtime.go:143

syscall.Read

/usr/local/go/src/syscall/syscall_unix.go

  Total:           0       40ms (flat, cum) 0.067%
    178            .       40ms           ??? 

syscall.Write

/usr/local/go/src/syscall/syscall_unix.go

  Total:           0       30ms (flat, cum)  0.05%
    206            .       30ms           ??? 

syscall.RawSyscall6

/usr/local/go/src/runtime/internal/syscall/syscall_linux.go

  Total:           0       70ms (flat, cum)  0.12%
     38            .       70ms           ??? 

bufio.(*Reader).Read

/usr/local/go/src/bufio/bufio.go

  Total:           0       40ms (flat, cum) 0.067%
    237            .       40ms           ??? 

syscall.read

/usr/local/go/src/syscall/zsyscall_linux_amd64.go

  Total:           0       40ms (flat, cum) 0.067%
    711            .       40ms           ??? 

syscall.write

/usr/local/go/src/syscall/zsyscall_linux_amd64.go

  Total:           0       30ms (flat, cum)  0.05%
    939            .       30ms           ??? 

syscall.Syscall

/usr/local/go/src/syscall/syscall_linux.go

  Total:           0       70ms (flat, cum)  0.12%
     82            .       70ms           ??? 

github.com/Shopify/sarama.(*Broker).Fetch

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       50ms (flat, cum) 0.083%
    503            .       50ms           ??? 

github.com/Shopify/sarama.(*Broker).readFull

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       40ms (flat, cum) 0.067%
    932            .       40ms           ???                                                                                                                            io.go:351

github.com/Shopify/sarama.(*Broker).write

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       40ms (flat, cum) 0.067%
    938            .       10ms           ??? 
    942            .       30ms           ??? 

github.com/Shopify/sarama.(*Broker).send

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       50ms (flat, cum) 0.083%
    954            .       50ms           ??? 

github.com/Shopify/sarama.(*Broker).sendWithPromise

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       50ms (flat, cum) 0.083%
    986            .       50ms           ??? 

github.com/Shopify/sarama.(*Broker).sendInternal

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       50ms (flat, cum) 0.083%
   1004            .       40ms           ??? 
   1005            .       10ms           ??? 

github.com/Shopify/sarama.(*Broker).sendAndReceive

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       50ms (flat, cum) 0.083%
   1034            .       50ms           ??? 

github.com/Shopify/sarama.(*Broker).responseReceiver

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       10ms (flat, cum) 0.017%
   1131            .       10ms           ??? 

github.com/Shopify/sarama.(*Broker).responseReceiver

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       30ms (flat, cum)  0.05%
   1158            .       30ms           ??? 

github.com/Shopify/sarama.(*Broker).updateOutgoingCommunicationMetrics

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/broker.go

  Total:           0       10ms (flat, cum) 0.017%
   1607            .       10ms           ??? 

internal/poll.(*FD).SetWriteDeadline

/usr/local/go/src/internal/poll/fd_poll_runtime.go

  Total:           0       10ms (flat, cum) 0.017%
    143            .       10ms           ??? 

internal/poll.setDeadlineImpl

/usr/local/go/src/internal/poll/fd_poll_runtime.go

  Total:           0       10ms (flat, cum) 0.017%
    161            .       10ms           ??? 

github.com/Shopify/sarama.(*brokerConsumer).subscriptionConsumer

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/consumer.go

  Total:           0       50ms (flat, cum) 0.083%
    935            .       50ms           ??? 

github.com/Shopify/sarama.(*brokerConsumer).fetchNewMessages

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/consumer.go

  Total:           0       50ms (flat, cum) 0.083%
   1111            .       50ms           ??? 

github.com/Shopify/sarama.withRecover

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/utils.go

  Total:           0       90ms (flat, cum)  0.15%
     43            .       90ms           ??? 

github.com/Shopify/sarama.(*bufConn).Read

/builds/p-clearing-system/clearing-cloud-v2/.go/pkg/mod/github.com/!shopify/[email protected]/utils.go

  Total:           0       40ms (flat, cum) 0.067%
    107            .       40ms           ??? 

io.ReadAtLeast

/usr/local/go/src/io/io.go

  Total:           0       40ms (flat, cum) 0.067%
    332            .       40ms           ??? 

io.ReadFull

/usr/local/go/src/io/io.go

  Total:           0       40ms (flat, cum) 0.067%
    351            .       40ms           ??? 

internal/poll.(*FD).Read

/usr/local/go/src/internal/poll/fd_unix.go

  Total:           0       40ms (flat, cum) 0.067%
    163            .       40ms           ???                                                                                                                            fd_unix.go:794
                                                                                                                           syscall_unix.go:178

internal/poll.(*FD).Write

/usr/local/go/src/internal/poll/fd_unix.go

  Total:           0       30ms (flat, cum)  0.05%
    383            .       30ms           ???                                                                                                                            fd_unix.go:794
                                                                                                                           syscall_unix.go:206

internal/poll.ignoringEINTRIO

/usr/local/go/src/internal/poll/fd_unix.go

  Total:           0       70ms (flat, cum)  0.12%
    794            .       70ms           ???                                                                                                                            syscall_unix.go:206                                                                                 syscall_unix.go:178

net.(*netFD).Read

/usr/local/go/src/net/fd_posix.go

  Total:           0       40ms (flat, cum) 0.067%
     55            .       40ms           ??? 

net.(*netFD).Write

/usr/local/go/src/net/fd_posix.go

  Total:           0       30ms (flat, cum)  0.05%
     96            .       30ms           ??? 

net.(*netFD).SetWriteDeadline

/usr/local/go/src/net/fd_posix.go

  Total:           0       10ms (flat, cum) 0.017%
    146            .       10ms           ???                                                                                                                            fd_poll_runtime.go:143