diff options
Diffstat (limited to 'src/util/benchmark.h')
-rw-r--r-- | src/util/benchmark.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/util/benchmark.h b/src/util/benchmark.h index ec00cb0d3..6e00906c4 100644 --- a/src/util/benchmark.h +++ b/src/util/benchmark.h | |||
@@ -43,6 +43,11 @@ struct UrlRequestData | |||
43 | * Request URL, truncated (but 0-terminated). | 43 | * Request URL, truncated (but 0-terminated). |
44 | */ | 44 | */ |
45 | char request_url[MAX_BENCHMARK_URL_LEN]; | 45 | char request_url[MAX_BENCHMARK_URL_LEN]; |
46 | |||
47 | /** | ||
48 | * HTTP status code. | ||
49 | */ | ||
50 | unsigned int status; | ||
46 | 51 | ||
47 | /** | 52 | /** |
48 | * How often was the URL requested? | 53 | * How often was the URL requested? |
@@ -101,9 +106,12 @@ get_benchmark_data (void); | |||
101 | * Get benchmark data for a URL. If the URL is too long, it's truncated | 106 | * Get benchmark data for a URL. If the URL is too long, it's truncated |
102 | * before looking up the correspoding benchmark data. | 107 | * before looking up the correspoding benchmark data. |
103 | * | 108 | * |
109 | * Statistics are bucketed by URL and status code. | ||
110 | * | ||
104 | * @param url url to get request data for | 111 | * @param url url to get request data for |
112 | * @param status http status code | ||
105 | */ | 113 | */ |
106 | struct UrlRequestData * | 114 | struct UrlRequestData * |
107 | get_url_benchmark_data (char *url); | 115 | get_url_benchmark_data (char *url, unsigned int status); |
108 | 116 | ||
109 | #endif /* BENCHMARK_H_ */ | 117 | #endif /* BENCHMARK_H_ */ |