Hello, expert, I have built Mongodb with PGO, that’s mainly add " -fprofile-generate" to building scripts, as for gcc, like “-fprofile-dir=xxx -fprofile-generate -DMONGO-GCOV” to the build with gcc; ‘-fprofile-generate -DMONGO_GCOV’ to the build with clang.
But boot up mongod built with gcc, it generated many gcda files, i supposed that it works for PGO, i didn’t do investigation further(like -fuse-profile), since gcc build is not my concern.
Then export LLVM_PROFILE_FILE=/opt/mongo/pgo, and boot up mongod built with clang, it only generate an empty file, even after mongodb exit with 'mongo --eval “use admin; db.shutdownServer();exit”. Make mongodb + PGO + clang + centos 8 work is my purpose.
Could any expert provide any clue on how to make PGO work with mongod, to generate normal PGO profile?
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Using OpenAI Latest Embeddings In A RAG System With MongoDB community Edition | 1 | 475 | May 2024 |
Packaging mogno-c-driver for debian | 2 | 242 | Jul 2024 |
Can connect mongodb on server but not locally | 0 | 22 | Feb 7 |
Using MongoDB locally | 1 | 28 | Feb 25 |
Get all fields in a collection | 3 | 40 | Mar 12 |