x


Profiling Threads in Pro

I am currently attempting to use the Unity Profiler to profile some CPU-intensive code, but, it doesn't seem to be showing up in the Profiler. When I attempt to add a Profiler.BeginSample()/EndSample() around the code, I get an error that it can only be done from the main thread, as I have several threads doing the heavy work.

Furthermore, the Profiler seems to be only showing info about code that is run directly through the Unity engine/main thread.

Am I missing something? I was hoping the Profiler in Pro (I am using the trial for now) was more inclusive. What am I missing?

more ▼

asked Jun 29 '12 at 07:08 PM

squirlhntr gravatar image

squirlhntr
29 2 6 8

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

So basically the Unity Profiler only profiles Unity-specific code? I was hoping it'd give a more specific breakdown, like, "you made 4000 calls to 'cast int' or 'func_x()'.

more ▼

answered Jun 29 '12 at 08:21 PM

squirlhntr gravatar image

squirlhntr
29 2 6 8

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3738
x154
x119
x54
x36

asked: Jun 29 '12 at 07:08 PM

Seen: 387 times

Last Updated: Jun 29 '12 at 08:21 PM