• Home
  • Raw
  • Download

Lines Matching refs:output

38 void OutputJsonKey(FILE *output, const T &value)  in OutputJsonKey()  argument
45 fprintf(output, "\"%s\":", value.c_str()); in OutputJsonKey()
51 fprintf(output, "\"%s\":", value.data()); in OutputJsonKey()
57 fprintf(output, "\"%s\":", value); in OutputJsonKey()
59 fprintf(output, "\"%s\":", std::to_string(value).c_str()); in OutputJsonKey()
63 void OutputJsonValue(FILE *output, const T &value, bool first = true)
66 fprintf(output, ",");
69 fprintf(output, "\"%s\"", value.c_str());
71 fprintf(output, "\"%s\"", value.data());
73 fprintf(output, "%s", std::to_string(value).c_str());
75 fprintf(output, "%s", std::to_string(value).c_str());
77 fprintf(output, "%s", std::to_string(value).c_str());
79 fprintf(output, "%s", std::to_string(value).c_str());
81 fprintf(output, "\"%s\"", value);
83 value.OutputJson(output);
92 void OutputJsonPair(FILE *output, const K &key, const T &value, bool first = false)
95 if (fprintf(output, ",") < 0) {
99 OutputJsonKey(output, key);
100 OutputJsonValue(output, value);
107 void OutputJsonVectorList(FILE *output, const std::string &key, const std::vector<T> &value,
111 if (fprintf(output, ",") < 0) {
115 if (fprintf(output, "\"%s\":[", key.c_str()) != -1) {
118 OutputJsonValue(output, *it, it == value.begin());
121 if (fprintf(output, "]") < 0) {
131 void OutputJsonMapList(FILE *output, const std::string &key, const std::map<K, V> &value,
135 if (fprintf(output, ",") < 0) {
139 if (fprintf(output, "\"%s\":[", key.c_str()) != -1) {
142 OutputJsonValue(output, it->second, it == value.begin());
145 if (fprintf(output, "]") < 0) {
155 void OutputJsonMap(FILE *output, const std::string &key, const std::map<K, V> &value,
159 if (fprintf(output, ",") < 0) {
163 if (fprintf(output, "\"%s\":{", key.c_str()) != -1) {
166 OutputJsonPair(output, it->first, it->second, it == value.begin());
169 if (fprintf(output, "}") < 0) {
189 void OutputJson(FILE *output) const in OutputJson()
191 if (fprintf(output, "{") < 0) { in OutputJson()
194 OutputJsonPair(output, "file", libId_, true); in OutputJson()
195 OutputJsonPair(output, "symbol", funcName_); in OutputJson()
196 if (fprintf(output, "}") < 0) { in OutputJson()
210 void OutputJson(FILE *output) const in OutputJson()
212 if (fprintf(output, "{") < 0) { in OutputJson()
215 OutputJsonPair(output, "symbol", functionId_, true); in OutputJson()
216 OutputJsonVectorList(output, "counts", in OutputJson()
218 if (fprintf(output, "}") < 0) { in OutputJson()
234 void OutputJson(FILE *output) const in OutputJson()
236 if (fprintf(output, "{") < 0) { in OutputJson()
239 OutputJsonPair(output, "selfEvents", selfEventCount_, true); in OutputJson()
240 OutputJsonPair(output, "subEvents", subTreeEventCount_); in OutputJson()
241 OutputJsonPair(output, "symbol", functionId_); in OutputJson()
243 OutputJsonPair(output, "funcName", funcName_); in OutputJson()
244 OutputJsonPair(output, "nodeIndex", nodeIndex_); in OutputJson()
245 OutputJsonPair(output, "reversed", reverseCaller_); in OutputJson()
247 OutputJsonMapList(output, "callStack", childrenMap); in OutputJson()
248 if (fprintf(output, "}") < 0) { in OutputJson()
276 void OutputJson(FILE *output) const in OutputJson()
278 if (fprintf(output, "{") < 0) { in OutputJson()
281 OutputJsonPair(output, "fileId", libId_, true); in OutputJson()
282 OutputJsonPair(output, "eventCount", eventCount_); in OutputJson()
283 OutputJsonMapList(output, "functions", funcs_); in OutputJson()
284 if (fprintf(output, "}") < 0) { in OutputJson()
297 void OutputJson(FILE *output) const in OutputJson()
299 if (fprintf(output, "{") < 0) { in OutputJson()
302 OutputJsonPair(output, "tid", tid_, true); in OutputJson()
303 OutputJsonPair(output, "eventCount", eventCount_); in OutputJson()
304 OutputJsonPair(output, "sampleCount", sampleCount_); in OutputJson()
305 OutputJsonMapList(output, "libs", libs_); in OutputJson()
306 OutputJsonPair(output, "CallOrder", callNode); in OutputJson()
307 OutputJsonPair(output, "CalledOrder", callNodeReverse); in OutputJson()
308 if (fprintf(output, "}") < 0) { in OutputJson()
319 void OutputJson(FILE *output) const in OutputJson()
321 if (fprintf(output, "{") < 0) { in OutputJson()
324 OutputJsonPair(output, "pid", pid_, true); in OutputJson()
325 OutputJsonPair(output, "eventCount", eventCount_); in OutputJson()
326 OutputJsonMapList(output, "threads", threads_); in OutputJson()
327 if (fprintf(output, "}") < 0) { in OutputJson()
339 void OutputJson(FILE *output) const in OutputJson()
341 if (fprintf(output, "{") < 0) { in OutputJson()
344 OutputJsonPair(output, "eventConfigName", eventName_, true); in OutputJson()
345 OutputJsonPair(output, "eventCount", eventCount_); in OutputJson()
346 OutputJsonMapList(output, "processes", processes_); in OutputJson()
347 if (fprintf(output, "}") < 0) { in OutputJson()
376 bool OutputJson(FILE *output = nullptr);