summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher/getLinks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/searcher/getLinks.lua')
-rw-r--r--server-beta/src/searcher/getLinks.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server-beta/src/searcher/getLinks.lua b/server-beta/src/searcher/getLinks.lua
index ba436f86..db1072e3 100644
--- a/server-beta/src/searcher/getLinks.lua
+++ b/server-beta/src/searcher/getLinks.lua
@@ -28,7 +28,12 @@ function searcher.getLinks(source)
if not unlock then
return nil
end
+ local clock = os.clock()
cache = getLinks(source) or false
+ local passed = os.clock() - clock
+ if passed > 0.1 then
+ log.warn(('getLinks takes [%.3f] sec!'):format(passed))
+ end
searcher.cache.getLinks[source] = cache
unlock()
return cache