6 #include "IResourceStream.h"
16 int totalFailedRequests;
17 int totalSuccessRequests;
18 int totalRawResourceBytesSuccessRequests;
20 int totalSuccessRequestFromWeb;
21 int totalSuccessRequestFromCache;
22 int totalRawResourceBytesSuccessRequestsFromWeb;
23 int totalRawResourceBytesSuccessRequestsFromCache;
24 int totalSuccessPreDecompressWebBytesRead;
26 float totalFailRequestFromWebTimeMilliseconds;
27 float totalSuccessRequestFromWebTimeMilliseconds;
28 float totalSuccessRequestFromCacheTimeMilliseconds;
33 int TotalNumRequests()
const;
34 int TotalFailedRequests()
const;
35 int TotalSuccessRequests()
const;
36 int TotalSuccessRequestsFromWeb()
const;
37 int TotalSuccessRequestsFromCache()
const;
38 int TotalBytesSuccessRequests()
const;
39 int TotalBytesSuccessRequestsFromWeb()
const;
40 int TotalBytesSuccessRequestsFromCache()
const;
41 int TotalSuccessPreDecompressWebBytesRead()
const;
43 int AvgBytesPerSuccessRequests()
const;
45 float AvgTimeSuccessCacheLoadMs()
const;
46 float AvgTimeSuccessWebLoadMs()
const;
47 float AvgTimeFailWebLoadMs()
const;
51 void LogFailedRequest(
const MortonKey& key,
float totalTimeTakenMilliseconds);
53 void LogSuccessfulRequest(
const MortonKey& key,
54 size_t rawResourceSize,
56 float totalTimeTakenMilliseconds,
57 size_t preDecompressBytesRead);