Welcome! Log In Create A New Profile

Advanced

Integration of gprof for Nginx dynamic module

July 20, 2019 03:18AM
Hi,

I am trying to integrate gprof for testing the performance of our nginx dynamic module developed in C. I am trying to include the -pg flag during compilation as follows:
./configure --with-debug --with-compat --add-dynamic-module=<Our Dyn Module code> --prefix=<Nginx dir> --with-cc-opt="-I/usr/include/x86_64-linux-gnu/ -I/usr/include/ .. <other options> .. -pg" --with-ld-opt="<dependent libs> -pg"

I am able to see gmon.out file getting created, but that does not include the profiling information of our dynamic module code. Only the Core nginx methods prof information is displayed.

Can someone please help me for this.

Thanks,
Phanee
Subject Author Posted

Integration of gprof for Nginx dynamic module

bhagavathula July 20, 2019 03:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 232
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready