Mutated 源代码解析 client
Posted 银灯玉箫
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mutated 源代码解析 client相关的知识,希望对你有一定的参考价值。
Mutated , a C++ project
https://github.com/scslab/mutated
usage
Main function
in the client directory,
mutated_synthetic.cc
Line 14 parse the user arguments, such as “-h, -w, -c”
parse_synthetic is implemented in client\\opts_synthetic.cc
Here, use third-party getopt to help parsing auguments.
Config is a struct defined in client\\opts.hh and comprising a lot of confguration parameters.
Line 15 creates the mutated load generator
in client\\client.hh
Line 16 run a client
Line 195 initialize a Memcache generator per connection.
client\\client.cc
Line 203 epoll_watch - registers a file descriptor for epoll events.
以上是关于Mutated 源代码解析 client的主要内容,如果未能解决你的问题,请参考以下文章