News for hackers. Stuff that matters.
Re:Apple's new Processor Trace instrument is incredible by wmf on Saturday August 16, 2025 @08:14PM (#44927896)
Most Linux devs think Valgrind is a good profiler so if Apple can shame them into being only 10 years behind that's pretty good.
Re:Apple's new Processor Trace instrument is incredible by delta_p_delta_x on Saturday August 16, 2025 @08:18PM (#44927918)
Linux devs in general seem to be quite content with absolutely atrocious tooling.
Re:Apple's new Processor Trace instrument is incredible by jiggawatts on Saturday August 16, 2025 @11:14PM (#44928574)
Why use a propriety steam hammer when you can bash things with open source rocks?
Re:Apple's new Processor Trace instrument is incredible by wmf on Sunday August 17, 2025 @12:14AM (#44928810)
Nah, there are plenty of newer open source tools that people either resist using or don't even know about.
Re:Apple's new Processor Trace instrument is incredible by 01HNNWZ0MV43FF on Saturday August 16, 2025 @11:46PM (#44928677)
this but unironically
Re:Apple's new Processor Trace instrument is incredible by sitkack on Saturday August 16, 2025 @09:52PM (#44928294)
Something something grug printf is all you need. People who LARP as Unix neckbeards rejoice in having nothing. Not content, actively seek out worse solutions.

Real Scottish craftspeople enjoy having amazing tooling. They even know how to use a debugger!

Re:Apple's new Processor Trace instrument is incredible by jauntywundrkind on Monday August 18, 2025 @12:55AM (#44937540)
Your either deep in the shit amazed anything works and respecting the world about you, so happy any tool at all is trying to make things better…

Or you have the free time to be a loudmouth online and mouth off about how tech's x y and/or z are dumb and how a shitty bash script is more than enough.

Thankfully I think now Linux has some really great tooling now. But very few people have calls of duty where they are called to do super serious work. Mostly the job calls for pretty simple shit. Make the dumb app go. Throw more servers at the problem someday. The tension is real. It's unfortunate that the cutting edge is so spread out, is so far in advance of the main body of devs.

Re:Apple's new Processor Trace instrument is incredible by sitkack on Monday August 18, 2025 @06:35AM (#44939155)
I agree, and thanks to AI we can scream debuggers at each other online, amazed that THAT actually works.
Re:Apple's new Processor Trace instrument is incredible by snihalani on Saturday August 16, 2025 @10:12PM (#44928362)
I don't get why tho.
Re:Apple's new Processor Trace instrument is incredible by astrange on Saturday August 16, 2025 @11:45PM (#44928674)
The most useful performance tool on macOS is spindump, which is just a straightforward whole-system CPU sampler. Second most useful is MallocStackLogging.

Other OSes have those too, but they're harder to use and the interfaces aren't as good.

Re:Apple's new Processor Trace instrument is incredible by viraptor on Sunday August 17, 2025 @01:58AM (#44929231)
The most useful tool was dtrace... Until Apple killed it with M2.
Re:Apple's new Processor Trace instrument is incredible by astrange on Sunday August 17, 2025 @03:51AM (#44929742)
That's overkill for most things since it relies on being able to patch running kernel code, which is also the definition of an RCE exploit.

I think it should work if you run `bputil -c`? Didn't try it though.

Re:Apple's new Processor Trace instrument is incredible by viraptor on Sunday August 17, 2025 @05:13AM (#44930099)
It just doesn't work at all since M2. I've got a bug report open and confirmed and Apple officially does not care anymore. If you try to run it, it will crash your whole system.
Re:Apple's new Processor Trace instrument is incredible by Someone on Sunday August 17, 2025 @07:20AM (#44930809)
> That's overkill for most things since it relies on being able to patch running kernel code, which is also the definition of an RCE exploit.

The idea of dtrace is that you can do that, yes, but to that, you need to be authorized, and the things you can do are (supposed to be) limited to looking to see what’s happening in the system. You can read arguments, but can’t, for example, change the arguments of a system call or disable authorization checks on system calls.

Re:Apple's new Processor Trace instrument is incredible by astrange on Sunday August 17, 2025 @02:26PM (#44933741)
The reason dtrace doesn't work by default is the kernel memory is locked down so nothing can write to it. There are no exceptions to this even if you're authorized.

(Or rather, the exception requires restarting the machine to turn the security off.)

Re:Apple's new Processor Trace instrument is incredible by dwattttt on Sunday August 17, 2025 @06:31AM (#44930525)
Windows Performance Analyser is pretty amazing. Not the simplest tool to use, but not particularly hard. Bruce Dawson's blog (https://randomascii.wordpress.com) has lots of articles using it.
Re:Apple's new Processor Trace instrument is incredible by joshvm on Sunday August 17, 2025 @04:55AM (#44930018)
I was going to ask, isn't this basically callgrind? I used that a lot in grad school to optimise our group's code (on an iMac no less). Incredibly useful and there are some nice visualisation / inspection tools.