Lines Matching refs:config

40     std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConfig>();
89 config->pid_ = std::stoi(argv[++i]);
91 config->filePath_ = std::string(argv[++i]);
93 config->duration_ = static_cast<uint32_t>(std::stoi(argv[++i]));
95 config->filterSize_ = std::stoi(argv[++i]);
97 config->shareMemorySize_ = std::stoi(argv[++i]);
99 config->processName_ = std::string(argv[++i]);
101 config->maxStackDepth_ = std::stoi(argv[++i]);
103 config->mallocDisable_ = true;
105 config->mmapDisable_ = true;
107 config->freeStackData_ = true;
109 config->munmapStackData_ = true;
111 config->mallocFreeMatchingInterval_ = static_cast<uint32_t>(std::stoi(argv[++i]));
113 config->mallocFreeMatchingCnt_ = std::stoi(argv[++i]);
115 config->stringCompressed_ = false;
117 config->fpUnwind_ = false;
119 config->blocked_ = false;
121 config->recordAccurately_ = false;
123 config->startupMode_ = true;
125 config->memtraceEnable_ = true;
127 config->offlineSymbolization_ = true;
129 config->callframeCompress_ = true;
131 config->statisticsInterval_ = std::stoi(argv[++i]);
133 config->clockId_ = std::stoi(argv[++i]);
137 config->sampleInterval_ = std::stoi(argv[++i]);
139 config->responseLibraryMode_ = true;
141 config->printNmd_ = true;
143 config->jsStackReport_ = static_cast<int32_t>(std::stoi(argv[++i]));;
145 config->maxJsStackDepth_ = std::stoi(argv[++i]);
147 config->filterNapiName_ = std::string(argv[++i]);
163 NativeMemoryProfilerSaClientManager::DumpData(fd, config);
165 } else if (config->printNmd_) {
167 NativeMemoryProfilerSaClientManager::GetMallocStats(fdFirst, config->pid_, 0);
170 NativeMemoryProfilerSaClientManager::Start(config);
174 if (config->pid_ > 0) {
175 NativeMemoryProfilerSaClientManager::Stop(config->pid_);
177 NativeMemoryProfilerSaClientManager::Stop(config->processName_);