( )⚙ D1064 sampling: do not log less interesting "uiblocked" fields

This is an archive of the discontinued Mercurial Phabricator instance.

sampling: do not log less interesting "uiblocked" fields
ClosedPublic

Authored by quark on Oct 13 2017, 7:55 PM.
Tags
None
Subscribers

Details

Summary

We got alias_*_blocked and unknown_system_* logged which bloated the
table. Since we are not using them, let's just remove them from logging.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Oct 13 2017, 7:55 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptOct 13 2017, 7:55 PM
quark updated this revision to Diff 2704.Oct 13 2017, 7:58 PM
durham accepted this revision.Oct 31 2017, 12:23 PM
durham added a subscriber: durham.

Where are these coming from?

This revision is now accepted and ready to land.Oct 31 2017, 12:23 PM
quark added a comment.Nov 1 2017, 2:31 PM
In D1064#21095, @durham wrote:

Where are these coming from?

quark % rg _blockedtimes
ui.py
246:            self._blockedtimes = src._blockedtimes
259:            self._blockedtimes = collections.defaultdict(int)
329:            self._blockedtimes[key + '_blocked'] += \ # <<<<<<< key could be "alias_xxx" or "system_xxx"
909:            self._blockedtimes['stdio_blocked'] += \
958:            self._blockedtimes['stdio_blocked'] += \

dispatch.py
198:            req.ui._blockedtimes['command_duration'] = duration * 1000
199:            req.ui.log('uiblocked', 'ui blocked ms', **req.ui._blockedtimes) # <<<<<<< This sends unwanted items
This revision was automatically updated to reflect the committed changes.