Is it possible to use kdebug_signpost?

Last year Apple introduced the kdebug_signpost API to programmatically add markers to the Instruments timeline. Is this accessible in the Xamarin iOS libraries? I can't seem to find it.

Best Answer

Answers

  • DavidCatmullDavidCatmull USMember

    Hey, that worked! Thanks. For the record, here's what I did:

    [DllImport(ObjCRuntime.Constants.SystemLibrary, EntryPoint = "kdebug_signpost")]
    public extern static void Signpost(UInt32 code, UIntPtr arg1 = new UIntPtr(), UIntPtr arg2 = new UIntPtr(), UIntPtr arg3 = new UIntPtr(), UIntPtr arg4 = new UIntPtr());
    
    [DllImport(ObjCRuntime.Constants.SystemLibrary, EntryPoint = "kdebug_signpost_start")]
    public extern static void SignpostStart(UInt32 code, UIntPtr arg1 = new UIntPtr(), UIntPtr arg2 = new UIntPtr(), UIntPtr arg3 = new UIntPtr(), UIntPtr arg4 = new UIntPtr());
    
    [DllImport(ObjCRuntime.Constants.SystemLibrary, EntryPoint = "kdebug_signpost_end")]
    public extern static void SignpostEnd(UInt32 code, UIntPtr arg1 = new UIntPtr(), UIntPtr arg2 = new UIntPtr(), UIntPtr arg3 = new UIntPtr(), UIntPtr arg4 = new UIntPtr());
    
Sign In or Register to comment.