Skip to content

Commit

Permalink
2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Feb 22, 2023
1 parent 27f8309 commit d30e1e7
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Release

on: [workflow_dispatch]

on:
push:
tags:
- '*'
#on:
# push:
#tags:
# - '*'
workflow_dispatch:
inputs:
tag:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

- name: Prometheus - Build
if: ${{ env.PROMETHEUS_ENABLE == 'true' }}
run: cmake --build ${{ env.BUILD_DIR }} --parallel 4
run: cmake --build ${{ env.BUILD_DIR }}
working-directory: ${{ env.PROMETHEUS_PATH }}

- name: Prometheus - Test
Expand All @@ -83,7 +83,7 @@ jobs:
ref: ${{ env.GITHUB_TAG }}

- name: Logfilegen - Configure
run: cmake -S . -B ${{ env.BUILD_DIR }} -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ env.LOGFILEGEN_BUILD_TYPE }}
run: cmake -S . -B ${{ env.BUILD_DIR }} -G "Unix Makefiles" -DUSE_STATIC=ON -DCMAKE_BUILD_TYPE=${{ env.LOGFILEGEN_BUILD_TYPE }}

- name: Logfilegen - Build
run: cmake --build ${{ env.BUILD_DIR }} --target all --config ${{ env.LOGFILEGEN_BUILD_TYPE }} -- -j4
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if(USE_CLANG)
endif(USE_CLANG)


project (logfilegen VERSION 1.2.0 LANGUAGES CXX)
project (logfilegen VERSION 2.0.0 LANGUAGES CXX)
add_definitions(-DVERSION_NUMBER="\\"${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}\\"")


Expand Down
10 changes: 5 additions & 5 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This release adds a new, simplifier version of the benchmark: --test
A some sort of quick benchmark at full speed, using the default template for the current mode (nginx by default), one step of the log rotation; output to the temporary file at system's temporary directory (the output log will be deleted after all is done). Result, in lines per second, may vary depended on the randomizer engine work and use of gzip.
Useful to run on the clean installation, when we have no configs and templates yet.

Fixes: log rotation queue minimal length is 1 now, i.e. one log file + at least one rotation file, if needed.
+ Metrics support. logfilegen can expose metrics, turned on by default. Get the metrics in Prometheus format at localhost:8080/metrics, and see the self-hosted statistics page at localhost:8080 (via http).
+ Results support. logfilegen can write final statistics to the file or stdout (--results=filename), in a given format (--resuilts_string=format string).
* Cmake support impovements (Clang, static buildm etc).
* A lot of fixes.
* Documentation update.
13 changes: 12 additions & 1 deletion docs/inst.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ make install
### From the source with CMake/Make


#### Default
#### Default, build with GCC


```
Expand All @@ -91,6 +91,17 @@ make
make install
```

#### Default, build with Clang++


```
mkdir b
cd b
cmake -DUSE_CLANG ..
make
make install
```

#### Static build


Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


#ifndef VERSION_NUMBER
#define VERSION_NUMBER "1.2.0"
#define VERSION_NUMBER "2.0.0"
#endif


Expand Down

0 comments on commit d30e1e7

Please sign in to comment.