[llvm] e9ec161 - Change the LLVM signpost category

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 12:18:37 PDT 2022


Author: Jonas Devlieghere
Date: 2022-04-05T12:18:31-07:00
New Revision: e9ec16177f2b675829a7b73b6b72c64f5b40e73f

URL: https://github.com/llvm/llvm-project/commit/e9ec16177f2b675829a7b73b6b72c64f5b40e73f
DIFF: https://github.com/llvm/llvm-project/commit/e9ec16177f2b675829a7b73b6b72c64f5b40e73f.diff

LOG: Change the LLVM signpost category

Currently, the LLVM/LLDB timers are visible in Instruments for all apps.

The developer-visible "PointsOfInterest" category is reserved for
runtime issues and developer-authored "important" logging. These logs
are visible to developer almost always in Instruments

The LLVM/LLDB timers do not belong there. Having these present in the
system is noisy and confusing to developers. This patch moves them under
a new "toolchain" category.

rdar://91266582

Differential revision: https://reviews.llvm.org/D123149

Added: 
    

Modified: 
    llvm/lib/Support/Signposts.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Signposts.cpp b/llvm/lib/Support/Signposts.cpp
index b0e5900569886..232b84e965a03 100644
--- a/llvm/lib/Support/Signposts.cpp
+++ b/llvm/lib/Support/Signposts.cpp
@@ -25,7 +25,7 @@ using namespace llvm;
 namespace {
 os_log_t *LogCreator() {
   os_log_t *X = new os_log_t;
-  *X = os_log_create("org.llvm.signposts", OS_LOG_CATEGORY_POINTS_OF_INTEREST);
+  *X = os_log_create("org.llvm.signposts", "toolchain");
   return X;
 }
 struct LogDeleter {


        


More information about the llvm-commits mailing list