Xcode Instruments CPU Profiler not logging os_signpost Points of Interest

If I create a new project with the following code in main.swift and then Profile it in Instruments with the CPU Profiler template, nothing is logged in the Points of Interest category. I'm not sure if this is related to the recent macOS 14.2 update, but I'm running Xcode 15.1.

import Foundation
import OSLog

let signposter = OSSignposter(subsystem: "hofstee.test", category: .pointsOfInterest)

// os_signpost event #1
signposter.emitEvent("foo")

// os_signpost event #2
signposter.withIntervalSignpost("bar") {
  print("Hello, World!")
}

If I change the template to the System Trace template and profile again, then the two os_signpost events show up as expected.

This used to work before, and this is a completely clean Xcode project created from the macOS Command Line Tool template. I'm not sure what's going on and searching for answers hasn't been fruitful. Changing the Bundle ID doesn't have any effect either.

Replies

I have a code that I was instrumenting for years. Recently I pulled it up in Xcode 15 and neither os_signpost nor pointsOfInterest work.