From 629191671bd03ca9463c6eea55c5c6286d106cc8 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Tue, 4 Aug 1998 22:55:25 +0000 Subject: [PATCH] Added timing/tracking for cache hits. --- network/main/mkgeturl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/network/main/mkgeturl.c b/network/main/mkgeturl.c index aaa5b7f18ee8..e7f4d8fa2338 100644 --- a/network/main/mkgeturl.c +++ b/network/main/mkgeturl.c @@ -2518,6 +2518,7 @@ NET_GetURL (URL_Struct *URL_s, { /* the cached file is valid so use it unilaterally */ + TIMING_MESSAGE(("cache,%s,valid", URL_s->address)); type = cache_method; } else if(URL_s->real_content_length > URL_s->content_length) @@ -2590,12 +2591,14 @@ NET_GetURL (URL_Struct *URL_s, { /* the cached file is valid so use it unilaterally */ + TIMING_MESSAGE(("cache,%s,valid", URL_s->address)); type = cache_method; } } else if((NET_CacheUseMethod == CU_NEVER_CHECK || URL_s->history_num) && !URL_s->expires) { + TIMING_MESSAGE(("cache,%s,valid", URL_s->address)); type = cache_method; } else if(NET_CacheUseMethod == CU_CHECK_ALL_THE_TIME @@ -2619,6 +2622,7 @@ NET_GetURL (URL_Struct *URL_s, * and it doesn't have an expiration date... * FORCE Reload it */ + TIMING_MESSAGE(("cache,%s,forced reload:non-history http", URL_s->address)); TRACEMSG(("Non history http file found. Force reloading it ")); /* strip the cache file and * memory pointer @@ -2636,6 +2640,7 @@ NET_GetURL (URL_Struct *URL_s, #endif /* MOZ_OFFLINE */ ) /* *X* check for is offline */ { + TIMING_MESSAGE(("cache,%s,forced reload:non-history cgi", URL_s->address)); TRACEMSG(("Non history cgi script found (probably)." " Force reloading it ")); /* cache testing stuff */ @@ -2660,6 +2665,7 @@ NET_GetURL (URL_Struct *URL_s, { /* the cached file is valid so use it unilaterally */ + TIMING_MESSAGE(("cache,%s,valid", URL_s->address)); type = cache_method; } }