[Lldb-commits] [PATCH] D34774: [lldb] Add a testcase for MainThreadCheckerRuntime plugin

chenyu via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 26 19:45:00 PDT 2017


SeanChense added a comment.

In https://reviews.llvm.org/D34774#908084, @kubamracek wrote:

> In https://reviews.llvm.org/D34774#907636, @SeanChense wrote:
>
> > Hi there, I am here to find help. Is there  a way to get `libMainThreadChecker.dylib` output ? Then we can analyze the output to generate a report ?
>
>
> Hi, what are you trying to do? What info are you missing that the LLDB plugin doesn't provide? I don't think parsing the text output (in stderr) from libMainThreadChecker.dylib is a good idea, as it's likely to change.


I am an iOS developer. We are using XCTest to run automated testing twice per day and to generate a report. In Xcode 9, I notice that `libMainThreadChecker.dylib` which documented in https://developer.apple.com/documentation/code_diagnostics/main_thread_checker. It seems that there is no API for `libMainThreadChecker.dylib` we can use to collect warning to append in report. So I wanna analyze the log to extract `libMainThreadChecker.dylib` output. Since you are saying parsing the text output is a bad idea, is there a better way to do that ?


https://reviews.llvm.org/D34774





More information about the lldb-commits mailing list