Fix wrong module name of rdr files, make GetSubModuleName() as a common
function.
If rdr also has SUB_MODULE_NAMES, then if log_adapter modifies the name
of the module, the module name obtained by the rdr module will be wrong.
Mainly involves the following modifications:
1. move GetSubModuleName() from log_adapter.cc to log_adapter_common.cc
2. delete GetSubModuleName() in rdr module
1. check whether path is empty in IsEveryFilenameValid().
2. do not print the string in IsStrLengthValid(), it's not safe.
3. make the constants about hash in recorder_manager.h.
4. initialize some variables.
MS_RDR_ENABLE should be in {0, 1}. if it is set as other value, it will
be 0 and WARNING information will be printed to tell user.
The settings in config file set by the user takes precedence over the
environment variables. If 'rdr_enable' is 0 in environment variable,
and then 'enable' is true in config file, the RDR will turned on.
1. support single name
2. add hash method for pair
3. move constructor and destructor of MemAddressInfo as public
4. remove graph_id
5. modify interval for somas info
1. move common function to base recorder
2. add UpdataRdrEnable() for recorder manager, and update once
3. add delimiter virable for base recorder, set it as '.'
4. modify recorders to use the suffix parameter of GetFileRealPath()
5. improve the text in ms_context
Can not add RdrEnablePlatform because linux is supported only.
If os is linux, (!is_rdr_supported && rdr_enable) will be false always,
else, (is_rdr_supported && !rdr_enable) will be false always.
mindquantum
cmake lint
projectq patch
test pqc
space
pylint
pqc python ops
doc
check
bug
bug
bug
bug
check boundary condition
mindquantum in log_adapter
mindquantum in adapter and recorder cc
substract to subtract
public variable to private variable
public variable to private variable
commit
debug
debug
const in utils
delete dtol
clint
1. add env_config_path for ms_context
2. add EnvConfigParser to parse config
3. add in CMakeLists
4. clang-format, cpplint
5. fix spelling in ms_context
Use EnvConfigParser in the constructed function of base_recorder,
when a recorder is initialized, its direcctory will be set as the
value from config file. In addition, recorder_manager will get the
'enable' from config file. If 'enable' is true and the path is not a
valid value, it will be the default value: './rdr'.