Unable to take memory snapshot of build

Hey, guys. I’ve been trying to educate myself on the memory profiler. I’ve read in several places that you want to profile the build, not the editor, since these numbers can be vastly different and the build is the one you are ultimately worried about, but the memory profiler does not seem to see the build when it’s open. I’m using the dropdown arrow in the upper left and the only options are Editor and . Is there a way to point it towards the build that I am unaware of? Thanks in advance.

FYI: Using Unity 2020.3.33f1.

Can’t help but notice that anytime I post a question under “Editor & General Support”, I get zero responses. Is this section of the forum just dead? I would think the devs at least would keep an eye out here.

Hello,
The forums are easier to monitor when one is just getting notified about new messages in relevant subforums or specific tags, like profiling or the Profiler Previews subforum.

The Profiler Manual pages have some hints for trouble shooting, have you checked those out? Also, are you trying to connect to a Development build?

1 Like

Hi, Martin. I had not seen the profiler manual, so thanks for the link. I’m actually using 2020.3, so the instructions look a little bit different. If you look here, under “Connecting to Your Player in the Profiler Window”, that’s where I’m getting stuck. I’m building directly on to the pc I’m editing from, but the build does not appear in the “Editor” drop down window. From the instructions on that page, it should auto-populate as long as it’s on the local network, so I’m assuming the same device counts as being on the local network. Any ideas on how to fix this? Your help is appreciated.

EDIT: Now that I’ve read through the manual some more, I’ve realized that I’m not seeing “Playmode” either in the list of options. I assumed “Editor” was the how you profiled playmode directly in the editor, but I see now that isn’t right. So either something isn’t going right or I am missing a very crucial step to the process.

8152466--1059164--upload_2022-5-24_8-22-41.png

EDIT: I’m starting to see where there is a disconnect here. I’m trying to use the “Memory Profiler”, not the “Profiler”. I’m just trying to take a snapshot of the build. Is the Memory Profiler deprecated?

Ah no, the Memory Profiler just doesn’t differentiate between Editor and Playmode because that’d be futile when memory Profiling. The Memory used by the Editor can not be cleanly separated from the memory used in Playmode, so the Drop-down is different to not suggest anything otherwise.

Beyond that difference though, the instructions between the Profiler and the Memory Profiler are the same. Did you build with the AutoConnect Profiler Option and have you tried the inverse of whichever one you’ve tried so far? Have you tried to connect to 127.0.0.1 via the option?

Gotcha, that makes sense.

Here’s where it gets tricky. I did switch on Development Build and Autoconnect Profiler, but I don’t think that matters because I’m using Entities, so I have to use the Build Configuration Asset for my builds. I haven’t been able to find an option for AutoConnect in that asset. If you know of one please let me know.

I did try the IP address, you listed, but got the following error.
"Failed to connect to player IP: 127.0.0.1:55000-55511,35000,4600,4600. Player did not respond:

It’s also worth mentioning that I am unable to see builds using the Build Configuration Asset in the Profiler. I can see the player, but as I understand it that is the player in the editor, not the build itself. I have the Classic Build Profile set to Develop per the instructions.
8154320--1059473--upload_2022-5-24_19-28-21.png

I appreciate the suggestions. If you have any other ideas I’m all ears.

Hmm, that should work though… Might be worth raising this in the DOTS subforum or as a bug…