summaryrefslogtreecommitdiff
path: root/lib/api/commit_statuses.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-01-12 14:59:30 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2016-01-12 14:59:30 +0100
commit5679ee0120ab45829b847d55d3a2253735856b3f (patch)
treed5cd063e87e47994c3ef34cfc1958d6be21cb644 /lib/api/commit_statuses.rb
parent587f850170a38e2642c0de76fb69efdeae930d66 (diff)
downloadgitlab-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