- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm doing memory profiler on my program using VTune 2024.2, platform info: Ubuntu 24.04 ,CPU: Intel(R) Core(TM) i5-8260U.
Related CMake script snippet:
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
target_link_libraries(${target_name} PUBLIC pthread dl)
if(ENABLE_PROFILER)
target_compile_options(${target_name} PRIVATE -fno-omit-frame-pointer -ggdb)
target_link_options(${target_name} PRIVATE -fno-omit-frame-pointer)
endif()
endif()
Building output snippet
/usr/bin/g++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DHAVE_PROFILER -DNDEBUG -DQT_CHARTS_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MESSAGELOGCONTEXT -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_WARN -I/home/hxf0223/work/ut/rias/build/src/rias_playback -I/home/hxf0223/work/ut/rias/src/rias_playback -I/home/hxf0223/work/ut/rias/build/src/rias_playback/rias_playback_autogen/include -I/home/hxf0223/work/ut/rias/system -I/home/hxf0223/work/ut/rias/3rd/include -I/home/hxf0223/work/ut/rias/include -I/home/hxf0223/work/ut/rias/src/rias_playback/chart -I/home/hxf0223/work/ut/rias/src/rias_playback/gl_chart -I/home/hxf0223/work/ut/rias/src/rias_playback/6m_parser -I/home/hxf0223/work/ut/rias/src/rias_playback/widgets -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCharts -O3 -DNDEBUG -std=gnu++20 -Wall -Wextra -pedantic -Werror -fno-omit-frame-pointer -ggdb -fPIC -MD -MT src/rias_playback/CMakeFiles/rias_playback.dir/gl_chart/gl_chart.cc.o -MF src/rias_playback/CMakeFiles/rias_playback.dir/gl_chart/gl_chart.cc.o.d -o src/rias_playback/CMakeFiles/rias_playback.dir/gl_chart/gl_chart.cc.o -c /home/hxf0223/work/ut/rias/src/rias_playback/gl_chart/gl_chart.cc
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Macc doesn't enable Call Stacks by default. You need to customize the analysis type by clicking the Plus Button at the top-right corner, and then selecting the Call Stacks.
Additionally, build your source with '-g' option.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page