diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-12 14:59:30 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-12 14:59:30 +0100 |
commit | 5679ee0120ab45829b847d55d3a2253735856b3f (patch) | |
tree | d5cd063e87e47994c3ef34cfc1958d6be21cb644 /lib/api/commit_statuses.rb | |
parent | 587f850170a38e2642c0de76fb69efdeae930d66 (diff) | |
download | gitlab-ce-5679ee0120ab45829b847d55d3a2253735856b3f.tar.gz |
Track memory allocated during a transaction
This gives a very rough estimate of how much memory is allocated during
a transaction. This only works reliably when using a single-threaded
application server and a Ruby implementation with a GIL as otherwise
memory allocated by other threads might skew the statistics. Sadly
there's no way around this as Ruby doesn't provide a reliable way of
gathering accurate object sizes upon allocation on a per-thread basis.
Diffstat (limited to 'lib/api/commit_statuses.rb')
0 files changed, 0 insertions, 0 deletions