diff options
author | Stan Hu <stanhu@gmail.com> | 2019-07-20 22:34:46 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-07-23 21:38:05 -0700 |
commit | 291df05e434f5678c47bce9521ff15748d6c767f (patch) | |
tree | a9ebe8e457d875b18998ac1a997c2faa0b1889f8 /lib/gitlab/git/repository.rb | |
parent | 4482b82687e5b647459946338686eca0b53b7ce4 (diff) | |
download | gitlab-ce-291df05e434f5678c47bce9521ff15748d6c767f.tar.gz |
Add Rugged calls to performance bar
This will help diagnose the source of excessive I/O from Rugged
calls. To implement this, we need to obtain the full list of arguments
sent to each request method.
Diffstat (limited to 'lib/gitlab/git/repository.rb')
-rw-r--r-- | lib/gitlab/git/repository.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 6e8aa5d578e..27032602828 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -55,6 +55,10 @@ module Gitlab @name = @relative_path.split("/").last end + def to_s + "<#{self.class.name}: #{self.gl_project_path}>" + end + def ==(other) other.is_a?(self.class) && [storage, relative_path] == [other.storage, other.relative_path] end |