mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-30 02:47:56 +08:00
add valgrind shell
This commit is contained in:
parent
64b6a0eb6d
commit
d91221f939
@ -29,6 +29,8 @@ static void fiber_io(ACL_FIBER *fiber acl_unused, void *ctx acl_unused)
|
||||
} else
|
||||
printf("read error: %s\r\n", acl_last_serror());
|
||||
|
||||
close(0);
|
||||
|
||||
acl_fiber_schedule_stop();
|
||||
}
|
||||
|
||||
|
4
lib_fiber/samples/read/valgrind.sh
Executable file
4
lib_fiber/samples/read/valgrind.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
#valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes --max-stackframe=3426305034400000 -v ./fiber -n 10 -m 20
|
||||
valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes -v ./read
|
4
lib_fiber/samples/redis/valgrind.sh
Executable file
4
lib_fiber/samples/redis/valgrind.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
#valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes --max-stackframe=3426305034400000 -v ./fiber -n 10 -m 20
|
||||
valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes -v ./redis -s 127.0.0.1:6379 -c 100 -n 100
|
4
lib_fiber/samples/sleep/valgrind.sh
Executable file
4
lib_fiber/samples/sleep/valgrind.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
#valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes --max-stackframe=3426305034400000 -v ./fiber -n 10 -m 20
|
||||
valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes -v ./sleep
|
4
lib_fiber/samples/timer/valgrind.sh
Executable file
4
lib_fiber/samples/timer/valgrind.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
#valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes --max-stackframe=3426305034400000 -v ./fiber -n 10 -m 20
|
||||
valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes -v ./timer
|
Loading…
Reference in New Issue
Block a user