Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/laysakura/springql-mem-leak


https://github.com/laysakura/springql-mem-leak

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# Fix high CPU usage

## Visualize in a frame graph

```console
./update-libspringql_client.sh 'v0.16.0+3'
```

```console
./build-run.sh # run main.c
```

```console
top # check CPU usage
```

See:

```console
perf record -g -F100000 -p $(pidof a.out)
perf script > perf_data.txt
perl stackcollapse-perf.pl perf_data.txt|perl flamegraph.pl --width 5000 --title "Flame Graphs - ./a.out" > flamegraph_aout.svg
```

## Thoughts

- SourceWorker consumes about 70% of CPU when no source row is incoming.