Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/a2p91494/public_html/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
Alessio Placitelli | NOT Dexter's Lab

Extending Glean: build re-usable types for new use-cases

(“This Week in Glean” is a series of blog posts that the Glean Team at Mozilla is using to try to communicate better about our work. They could be release notes, documentation, hopes, dreams, or whatever: so long as it is inspired by Glean. You can find an index of all TWiG posts online.)

The last blog post:This Week in Glean: Cargo features – an investigation by Jan-Erik.

The philosophy of Glean has always been to offer higher-level metric types that map semantically to what developers want to measure: a Timespan metric type, for instance, will require developers to declare the resolution they want the time measured in. It is more than just a number. The build-time generated APIs will then offer a set of operations, start() and stop(), to allow developers to take the measurements without caring about the implementation details or about the consistency of times across platforms. By design, a Timespan will record time consistently and predictably on iOS, Android and even desktop. This also empowers the rest of the Glean ecosystem, especially pipeline and tooling, to know about the quality guarantees of the types, their format and, potentially, ways to aggregate and visualize them.


GeckoView + Glean = Fenix performance metrics

Fatal error: Uncaught Error: Call to a member function id() on array in /home/a2p91494/public_html/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /home/a2p91494/public_html/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /home/a2p91494/public_html/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', 'val builder = G...') #3 /home/a2p91494/public_html/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('val builder = G...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /home/a2p91494/public_html/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): CrayonHighlighter->process() #5 /home/a2p91494/pub in /home/a2p91494/public_html/wordpress/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36