Description
If you press the keys CTRL + F, you get showing this tooltip right here.
I’ve been pressing ← (Left) and → (Right) cluelessly, trying to focus in and out of the text box, pressing those arrow keys, with no success.
It didn’t make sense to me. The data that contain the names for those markers are there when you Export as CSV. Everything looks to be there, why won’t this work? Why am I unable to navigate through the search results of this CTRL + F “find” feature.
I even went here to put my confusion: https://devforum.roblox.com/t/introducing-microprofiler-memory-profiling-flame-graphs-diffs-and-much-more/3226910/42
So, I felt like that this tooltip is misleading me. But why would Roblox do that?
Originally, I wanted to type trolling, but I replaced the word with “misleading”
So, I wanted to figure out HOW I have to press the Left and Right Arrow keys, until I found the following shocking news…
if (FFlagMicroprofilerThreadSearch) {
if (evt.keyCode === 39) {
MoveToNext(1);
}
if (evt.keyCode === 37) {
MoveToNext(-1);
}
}
FFlagMicroprofilerThreadSearch
is turned off, it is set to false
, so I typed FFlagMicroprofilerThreadSearch = true
in the Browser Console and I could move between the search results using the arrow keys. (I assume that it let’s me navigate through all possible results, right?)
As soon as I noticed this, I rushed to the Bug Report section, and now I am here. Because, there is 100% a mistake here, without a doubt.
Why is the “Left/Right keys = navigate” tooltip shown, if the Fast Flag for it is turned off?
Re-production Steps
- Open up Studio
- Create a sample script that you can catch off with the MicroProfiler
Example
game.StarterPlayer.StarterPlayerScripts
Name the LocalScript Test123 Script
or something.
local SpawnLocation = game.Workspace:WaitForChild("SpawnLocation")
while true do
--debug.profilebegin("Test123")
local newColor = Color3.new(math.random(), math.random(), math.random())
SpawnLocation.Color = newColor
--debug.profileend("Test123")
task.wait(1)
end
-
Start the game and when you see the SpawnLocation change its color, do
CTRL + F6
, or whatever hotkey is needed to open up the MicroProfiler (because Studio STILL has hotkeys wrong on some keyboard layouts), then Dump the MicroProfiler, e.g. dump a decent amount of frames so you have a couple of MicroProfiler stuff ready. - Go to your
%LocalAppData%/Roblox/logs
and open the most recent created.html
MicroProfiler dump. - Press CTRL + F to open the “find” feature.
- If you, for instance, named your script
Test123
type “Script_Test” into the Textbox located below the Label that says “Timer/Thread” - If you hit enter, you get brought to the search result which’s computation time took the longest out of all.
- You may notice that the tooltip says “Left/Right keys = navigate”
- Click the Left and Right keys on your keyboard.
- Observe, how nothing happens.
- Open the browser console and type
FFlagMicroprofilerThreadSearch = true
and hit enter. - Try to click the Left and Right keys on your keyboard now.
- Observe, how something does happen now.
Expected Result
Due to the fact that there’s a tooltip telling me, that I can use Left and Right keys to navigate, I expect Left and Right keys to do something. But they didn’t do anything.
Actual Result
I get shown this tooltip
But nothing happens when I press ← (Left) and → (Right). Not until I turn on FFlagMicroprofilerThreadSearch
.
The entry point that hints to Left and Right click feature for the find function is shown to me, even though the thing that gates it, is set to false FFlagMicroprofilerThreadSearch
.