Commit 649eb343 authored by Leslie Zhai's avatar Leslie Zhai

Add AddressSanitizer memory profile

https://github.com/google/sanitizers/issues/731
parent db96e348
......@@ -16,6 +16,9 @@
#include <KCoreAddons/KAboutData>
#include <KI18n/KLocalizedString>
#include <QtCore/QCommandLineParser>
#ifdef __clang__
#include <sanitizer/common_interface_defs.h>
#endif
int main( int argc, char* argv[] )
{
......@@ -130,5 +133,10 @@ int main( int argc, char* argv[] )
app.init( parser );
#ifdef __clang__
if (argc > 2)
__sanitizer_print_memory_profile(atoi(argv[1]), atoi(argv[2]));
#endif
return app.exec();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment