2009-10-26 20:10:04 +00:00
|
|
|
EBTREE_DIR = ../../ebtree
|
2010-01-02 11:23:30 +00:00
|
|
|
INCLUDE = -I../../include -I$(EBTREE_DIR)
|
2011-09-16 13:00:48 +00:00
|
|
|
|
|
|
|
CC = gcc
|
2012-06-09 07:44:03 +00:00
|
|
|
|
|
|
|
# note: it is recommended to also add -fomit-frame-pointer on i386
|
2009-11-17 09:08:17 +00:00
|
|
|
OPTIMIZE = -O3
|
2009-01-22 17:56:50 +00:00
|
|
|
|
2012-06-09 07:44:03 +00:00
|
|
|
OBJS = halog
|
2009-01-22 17:56:50 +00:00
|
|
|
|
2009-02-20 10:02:32 +00:00
|
|
|
halog: halog.c fgets2.c
|
[CONTRIB] halog: report per-url counts, errors and times
Using -u{,c,e,t,a,to,ao} it is possible to get per-URL statistics, sorted by
URL, request count, error count, total time, avg time, total time on OK requests,
avg time on OK requests.
Since it has to parse URLs and store a number of fields, it's quite slower
than other methods, but still correct for production usage (typically 800000
lines or 270 MB per second on a 2 GHz system).
Results are sorted in reverse order so that it's easy to catch them by piping
the output to the "head" command.
(cherry picked from commit 15ce7f56d15f839ce824279b84ffe14c58e41fda)
2010-10-28 18:33:46 +00:00
|
|
|
$(CC) $(OPTIMIZE) -o $@ $(INCLUDE) $(EBTREE_DIR)/ebtree.c $(EBTREE_DIR)/eb32tree.c $(EBTREE_DIR)/eb64tree.c $(EBTREE_DIR)/ebmbtree.c $(EBTREE_DIR)/ebsttree.c $(EBTREE_DIR)/ebistree.c $(EBTREE_DIR)/ebimtree.c $^
|
2009-02-20 10:02:32 +00:00
|
|
|
|
2009-01-22 17:56:50 +00:00
|
|
|
clean:
|
2011-09-16 13:00:48 +00:00
|
|
|
rm -f $(OBJS)
|