News: 0001514196

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

LLVM 20 Merges An Initial Telemetry Framework

([LLVM] 5 Hours Ago LLVM Telemetry Framework)


Merged this week to the LLVM Git codebase ahead of next year's LLVM 20 release is a simple telemetry framework.

This telemetry framework was started out for LLDB as the LLVM debugger. This framework is for collecting various usage metrics but given interest elsewhere in the LLVM compiler infrastructure, it was moved out to being a common LLVM framework.

The LLVM Telemetry Framework is a common framework for usage and performance metrics that can be used by tools, adapted by downstream compiler vendors, and more for a variety of purposes. The code right now is about providing a high level abstract API for telemetry needs.

No telemetry implementation within the upstream LLVM codebase though is storing any of the collected data due to privacy and security reasons, but could potentially differ with downstream vendor implementations.

[1]This LLVM Discourse thread from August 2022 goes over the original desire for adding telemetry/metrics reporting for the LLDB debugger. The original desire was to better understand how users debug with LLDB like what commands are most popular, what commands are under-utilized, how many people are using LLDB, and similar. Now with this being a common LLVM telemetry framework, it's scope can expand further within this leading open-source compiler stack.

This is just the initial LLVM Telemetry Framework merged this week so there isn't too much more to add from a end-user perspective at this point. Those wanting to learn more about the inner-workings of this new LLVM Telemetry Framework can do so via [2]this commit that also includes the LLVM documentation around this new framework.



[1] https://discourse.llvm.org/t/rfc-lldb-telemetry-metrics/64588

[2] https://github.com/llvm/llvm-project/commit/8c0090030bf89df7e0dbe5827a83d52627b2c87f



OneTimeShot

Alliancemd

rabcor

Steffo

Kjell

Volta

Steffo

kpedersen

Steffo

Speak roughly to your little boy,
And beat him when he sneezes:
He only does it to annoy
Because he knows it teases.
Wow! wow! wow!

I speak severely to my boy,
And beat him when he sneezes:
For he can thoroughly enjoy
The pepper when he pleases!
Wow! wow! wow!
-- Lewis Carrol, "Alice in Wonderland"