|
@@ -29,7 +29,7 @@ function emitPdfStats(stats, timings, request) {
|
|
|
emitPdfCachingStats(stats, timings, request)
|
|
emitPdfCachingStats(stats, timings, request)
|
|
|
} else {
|
|
} else {
|
|
|
// How much bandwidth will the pdf incur when downloaded in full?
|
|
// How much bandwidth will the pdf incur when downloaded in full?
|
|
|
- Metrics.summary('pdf-bandwidth', stats['pdf-size'], 1, request.metricsOpts)
|
|
|
|
|
|
|
+ Metrics.summary('pdf-bandwidth', stats['pdf-size'], request.metricsOpts)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -63,7 +63,6 @@ function emitPdfCachingStats(stats, timings, request) {
|
|
|
Metrics.summary(
|
|
Metrics.summary(
|
|
|
'overhead-compute-pdf-ranges',
|
|
'overhead-compute-pdf-ranges',
|
|
|
fraction * 100 - 100,
|
|
fraction * 100 - 100,
|
|
|
- 1,
|
|
|
|
|
request.metricsOpts
|
|
request.metricsOpts
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -95,7 +94,6 @@ function emitPdfCachingStats(stats, timings, request) {
|
|
|
Metrics.summary(
|
|
Metrics.summary(
|
|
|
'new-pdf-ranges-relative-to-total-ranges',
|
|
'new-pdf-ranges-relative-to-total-ranges',
|
|
|
(stats['pdf-caching-n-new-ranges'] / stats['pdf-caching-n-ranges']) * 100,
|
|
(stats['pdf-caching-n-new-ranges'] / stats['pdf-caching-n-ranges']) * 100,
|
|
|
- 1,
|
|
|
|
|
request.metricsOpts
|
|
request.metricsOpts
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
@@ -104,7 +102,6 @@ function emitPdfCachingStats(stats, timings, request) {
|
|
|
Metrics.summary(
|
|
Metrics.summary(
|
|
|
'cacheable-ranges-to-pdf-size',
|
|
'cacheable-ranges-to-pdf-size',
|
|
|
(stats['pdf-caching-total-ranges-size'] / stats['pdf-size']) * 100,
|
|
(stats['pdf-caching-total-ranges-size'] / stats['pdf-size']) * 100,
|
|
|
- 1,
|
|
|
|
|
request.metricsOpts
|
|
request.metricsOpts
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -120,7 +117,6 @@ function emitPdfCachingStats(stats, timings, request) {
|
|
|
Metrics.summary(
|
|
Metrics.summary(
|
|
|
'pdf-bandwidth-savings',
|
|
'pdf-bandwidth-savings',
|
|
|
100 - (sizeWhenDownloadedInFull / stats['pdf-size']) * 100,
|
|
100 - (sizeWhenDownloadedInFull / stats['pdf-size']) * 100,
|
|
|
- 1,
|
|
|
|
|
request.metricsOpts
|
|
request.metricsOpts
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -128,7 +124,6 @@ function emitPdfCachingStats(stats, timings, request) {
|
|
|
Metrics.summary(
|
|
Metrics.summary(
|
|
|
'pdf-bandwidth',
|
|
'pdf-bandwidth',
|
|
|
sizeWhenDownloadedInFull,
|
|
sizeWhenDownloadedInFull,
|
|
|
- 1,
|
|
|
|
|
request.metricsOpts
|
|
request.metricsOpts
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -137,7 +132,6 @@ function emitPdfCachingStats(stats, timings, request) {
|
|
|
Metrics.summary(
|
|
Metrics.summary(
|
|
|
'pdf-ranges-disk-size',
|
|
'pdf-ranges-disk-size',
|
|
|
stats['pdf-caching-new-ranges-size'] - stats['pdf-caching-reclaimed-space'],
|
|
stats['pdf-caching-new-ranges-size'] - stats['pdf-caching-reclaimed-space'],
|
|
|
- 1,
|
|
|
|
|
request.metricsOpts
|
|
request.metricsOpts
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|