[webkit-dev] Reminder regarding formatting uint64_t
Michael Catanzaro
mcatanzaro at igalia.com
Wed Feb 27 18:46:51 PST 2019
On Wed, Feb 27, 2019 at 6:05 PM, Keith Rollin <krollin at apple.com> wrote:
> The underlying Cocoa os_log facility
Yeah this is really interesting too. RELEASE_LOG is Cocoa-specific,
because it's only backed by os_log. So when you change debug LOGs to
RELEASE_LOG, you're removing the logging for other platforms. I wonder
if we should change that.
> is able to greatly compress the logs stored in memory and on disk, as
> well as get corresponding performance benefits, by taking advantage
> of the fact that the formatting string is a literal that can be found
> in the executable’s binary image. When you log with a particular
> formatting string, that string is not included in the log archive,
> but a reference to it is. In the case that Michael gives, a reference
> to the big formatting string is stored along with the pointer, the
> unsigned long long, and the integer. In the above example, a
> reference to “%s” is stored, along with the fully-formatted
> string. This latter approach takes up a lot more memory.
Wow.
Michael
More information about the webkit-dev
mailing list