3scale / APIcast

3scale API Gateway
Apache License 2.0
305 stars 171 forks source link

[THREESCALE-10981] - Update profiling tools #1477

Closed tkan145 closed 1 month ago

tkan145 commented 3 months ago

What

https://issues.redhat.com/browse/THREESCALE-10981

Verification steps:

Pass 1: parsed user script and 488 library scripts using 303940virt/97700res/17212shr/82296data k
b, in 100usr/20sys/119real ms.
Pass 2: analyzed script: 2 probes, 1 function, 5 embeds, 0 globals using 551508virt/346848res/189
36shr/329864data kb, in 1590usr/180sys/1806real ms.
Pass 3: translated to C into "/tmp/stap7kmO08/stap_5af05774dfd7657d11e5162b856c54db_2791_src.c" u
sing 551508virt/346976res/19064shr/329864data kb, in 0usr/0sys/5real ms.
Pass 4: compiled C into "stap_5af05774dfd7657d11e5162b856c54db_2791.ko" in 1500usr/390sys/1749rea
l ms.
Pass 5: starting run.
read performed
Pass 5: run completed in 10usr/20sys/1045real ms.
tkan145 commented 3 months ago

Thanks @dfennessy :smile:

eguzki commented 2 months ago

verification steps working, I was able to have vagrant up and running

eguzki commented 2 months ago

Is it possible to run those profiling tools in the existing docker compose environment? This vagrant seems like yet another environment to maintain (regarding deps). Fair enough if it is the only env where profiling tools can run.

tkan145 commented 2 months ago

It's a bit tricky to get systemtap working inside a Docker container, last time I tried it required matching kernel version between host and container.

I'll try again tomorrow, if it still doesn't work then I'll merge this

tkan145 commented 1 month ago

Running with Docker requires a matching kernel between the Docker image and the host. So I will merge this now and we can improve with future commit