[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OSSTEST PATCH 12/60] history reporting (nfc): Record query-specific stats


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Date: Fri, 14 Aug 2020 18:21:17 +0100
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 14 Aug 2020 17:22:36 +0000
  • Ironport-sdr: emOl40wtKzR+YEaTIaVVp0vVYkyYGC6MTh755ARD8q+YYCtoqukf7tCT321KCe5aIX2L6/wgxn bxyRWqAOYra8sAGIo4R6lEXdvuhTWj0DhBXlcQscDQclgBoFRCPytz9PzjJU7Z6xkW3/CczWhc mAUZiqfJHcW3/3alnt7gfMqirZgjdV/JliXMjDpLM4saNTFIQaiPRLQDPga6WRShmWay0KbPDs av3gHgp/euKlVRR4LjOgdim9bFWVLtP+gX4FEWbvApeFnYji42DRo7hwVb27wtIc+NnfDlGZZo pXA=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Prep work.  Nothing uses these yet.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 sg-report-host-history | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sg-report-host-history b/sg-report-host-history
index 705367cf..32414322 100755
--- a/sg-report-host-history
+++ b/sg-report-host-history
@@ -77,6 +77,10 @@ our $flightcond;
 our $minflight;
 
 our %cache;
+
+our %q_count;
+our %q_misses;
+
 our @cache_row_key_cols = qw(flight job status name);
 
 sub cache_row_key ($) {
@@ -186,8 +190,10 @@ sub cacheable_fn ($$$) {
     $jqtotal++;
     $cachekey = '%'.$cachekey;
     my $cached = $jr->{$cachekey};
+    $q_count{$cachekey}++;
     if (!$cached) {
        $jqcachemisses++;
+       $q_misses{$cachekey}++;
        $cached = $fn->();
        $jr->{$cachekey} = $cached;
     }
-- 
2.11.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.