• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by squirlhntr · Jun 29, 2012 at 07:08 PM · profilerprocputhread

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?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by squirlhntr · Jun 29, 2012 at 08:21 PM

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()'.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Wellmann · Jun 23, 2016 at 02:03 PM 0
Share

Hi @squirlhntr,

I'm running into the same problem. Have you ever found a way to profile threads? Thanks, $$anonymous$$arkus

Your answer

Hint: You can notify a user about this post by typing @username

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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Can the Student Liscense of Unity3D Pro be used for.. 2 Answers

I can't export my game to Xbox 360, PS3 or Wii/Wii U 2 Answers

Mesh SubmitVBO Taking Up CPU Power 1 Answer

How to display profiling data on screen (Android) 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges