You MAY NOT want to integrate the library your application; but just analyze the slow query log. Then the demo project fits your usecase. Clone the project. git clone ...