Log when workers send too much data
commitf4e0e9d64fbe35223bac1f52c88bd8eabab5b8ff
authorHunter Goldstein <hgoldstein@fb.com>
Thu, 18 Nov 2021 19:22:16 +0000 (18 11:22 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 18 Nov 2021 19:23:47 +0000 (18 11:23 -0800)
tree1f3e8fd18eb990ee1869648fba05d990abfe8e43
parentee82df37d64835c1c1fed6ec8fd24cf2fc25a8a1
Log when workers send too much data

Summary:
While investigating RC build failures I found this line in the `hh_server` logs:
```
WARNING: you are sending quite a lot of data (32209405 bytes), which may have an adverse performance impact. If you are sending closures, double-check to ensure that they have not captured large values in their environment.
```

Let's try to get more info about this by using `HackEventLogger`.

Also, let's not dump the stack trace: it's not particularly useful given it's almost _all_ plumbing from setting up the worker.

Reviewed By: ljw1004

Differential Revision: D32293622

fbshipit-source-id: 09beaf3426effa833af60d5100904127cb75d389
hphp/hack/src/procs/dune
hphp/hack/src/procs/worker.ml