fluent-plugin-detect-exceptions 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-detect-exceptions.gemspec +3 -3
- data/lib/fluent/plugin/exception_detector.rb +3 -1
- data/test/plugin/test_exception_detector.rb +28 -0
- data/test/plugin/test_out_detect_exceptions.rb +10 -5
- metadata +17 -20
- data/Gemfile.lock +0 -60
- data/fluent-plugin-detect-exceptions.sublime-project +0 -8
- data/fluent-plugin-detect-exceptions.sublime-workspace +0 -1595
- data/measure_memory.sh +0 -28
- data/pkg/fluent-plugin-detect-exceptions-0.0.4.gem +0 -0
data/measure_memory.sh
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
DELAY=0.1
|
4
|
-
|
5
|
-
while true
|
6
|
-
do
|
7
|
-
start_timestamp=`date +%s.%N`
|
8
|
-
|
9
|
-
paths=`find /sys/fs/cgroup/memory/docker/* -type d`
|
10
|
-
for path in $paths
|
11
|
-
do
|
12
|
-
id=${path##*/}
|
13
|
-
memory=`cat /sys/fs/cgroup/memory/docker/${id}/memory.usage_in_bytes`
|
14
|
-
echo -ne "${id}\t${memory} "
|
15
|
-
done
|
16
|
-
if [[ "$paths" != "" ]]
|
17
|
-
then
|
18
|
-
echo
|
19
|
-
fi
|
20
|
-
|
21
|
-
end_timestamp=`date +%s.%N`
|
22
|
-
to_wait=`perl -e "print ${DELAY} - ${end_timestamp} + ${start_timestamp}"`
|
23
|
-
|
24
|
-
if [[ `echo ${to_wait}'>'0 | bc -l` -ne 0 ]]
|
25
|
-
then
|
26
|
-
sleep $to_wait
|
27
|
-
fi
|
28
|
-
done
|
Binary file
|