This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5273b30  WHIMSY-351 - try to trace source of slowness
5273b30 is described below

commit 5273b3067f939a98f7e40805e5fcf1b7b5c6e020
Author: Sebb <[email protected]>
AuthorDate: Sat Mar 13 16:42:52 2021 +0000

    WHIMSY-351 - try to trace source of slowness
---
 www/roster/main.rb             | 15 +++++++++++++++
 www/roster/views/index.html.rb |  3 +++
 2 files changed, 18 insertions(+)

diff --git a/www/roster/main.rb b/www/roster/main.rb
index d060050..95c19b5 100755
--- a/www/roster/main.rb
+++ b/www/roster/main.rb
@@ -39,19 +39,34 @@ end
 
 get '/' do
   if env['REQUEST_URI'].end_with? '/'
+    stamps = []
+    stamps << Time.now.to_i
     ASF::Person.preload(['asf-banned','loginShell']) # so can get inactive 
count
+    stamps << Time.now.to_i
     @committers = ASF::Person.list
+    stamps << Time.now.to_i
     @committees = ASF::Committee.pmcs
+    stamps << Time.now.to_i
     @nonpmcs = ASF::Committee.nonpmcs
+    stamps << Time.now.to_i
     @members = ASF::Member.list.keys - ASF::Member.status.keys # i.e. active 
member ids
+    stamps << Time.now.to_i
     @groups = Group.list
+    stamps << Time.now.to_i
     @podlings = ASF::Podling.to_h.values
+    stamps << Time.now.to_i
     @petri = ASF::Petri.list
+    stamps << Time.now.to_i
     @otherids = ASF::Project.list.map(&:name) -
                 @committees.map(&:name) -
                 @nonpmcs.map(&:name) -
                 ASF::Podling.currentids -
                 @petri.map(&:id)
+    stamps << Time.now.to_i
+    if stamps[-1] - stamps[0] > 1
+      @stamps = stamps.each_cons(2).map { |a,b| b-a }
+      Wunderbar.warn "TIMES %s TIMES" % @stamps.join(',')
+    end
     _html :index
   else
     redirect to('/')
diff --git a/www/roster/views/index.html.rb b/www/roster/views/index.html.rb
index 7634505..86d62ac 100644
--- a/www/roster/views/index.html.rb
+++ b/www/roster/views/index.html.rb
@@ -7,6 +7,9 @@ _html do
   _link rel: 'stylesheet', href: "stylesheets/app.css?#{cssmtime}"
 
   _body? do
+    if @stamps
+      _.comment! "TIMES %s TIMES" % @stamps.join(',')
+    end
     _whimsy_body(
       title: PAGETITLE,
       breadcrumbs: {

Reply via email to