简体   繁体   中英

Is there a way to tell which threads are running in my process?

Every once in a while one frame of my game takes too long, I think the reason might be that some thread takes to long to come back. (Just a hint).

I explicitly create only one thread in my game, during loading screen, which is suspended right after. I know that my sound lib also creates one. But I don't know if any other threads are being created. I've used gDebugger to debug thread, and it tells me a lot of threads were initiated but I can't get any info out of it. I want to make sure none of these thread are messing up my game time.

How do I do that? Is there a way to breakpoint at a thread creation in VisualStudio and get the module that did it? I'm using Express edition, but I could get a pro trial only to check that.

Thanks in advance.

每当您中断VS时,它将为您提供当前活动线程及其当前调用堆栈的列表。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM