begin adding some metrics to tcp-proxy

This commit is contained in:
Grant Limberg 2024-05-06 19:11:45 -07:00
commit 342657e629
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
4 changed files with 67 additions and 6 deletions

View file

@ -1,9 +1,14 @@
CXX=$(shell which clang++ g++ c++ 2>/dev/null | head -n 1)
INCLUDES?=-I../ext/prometheus-cpp-lite-1.0/core/include -I../ext/prometheus-cpp-lite-1.0/simpleapi/include
INCLUDES?=-isystem ../ext/prometheus-cpp-lite-1.0/core/include -isystem ../ext/prometheus-cpp-lite-1.0/simpleapi/include
all:
$(CXX) -O3 -fno-rtti $(INCLUDES) -std=c++11 -pthread -frtti -o tcp-proxy tcp-proxy.cpp ../node/Metrics.cpp
OBJS=Metrics.o \
../node/Metrics.o
CXXFLAGS=-O3 -fno-rtti $(INCLUDES) -std=c++17 -pthread -frtti
all: $(OBJS) tcp-proxy.o
$(CXX) -O3 -fno-rtti $(INCLUDES) -std=c++17 -pthread -frtti -o tcp-proxy tcp-proxy.o $(OBJS)
clean:
rm -f *.o tcp-proxy *.dSYM
rm -f $(OBJS) tcp-proxy.o tcp-proxy *.dSYM