| 246 | } |
| 247 | |
| 248 | Json::Value cmInstrumentation::DumpTargets( |
| 249 | std::unique_ptr<cmGlobalGenerator> const& gg) |
| 250 | { |
| 251 | Json::Value targets = Json::objectValue; |
| 252 | std::vector<cmGeneratorTarget*> targetList; |
| 253 | for (auto const& lg : gg->GetLocalGenerators()) { |
| 254 | cm::append(targetList, lg->GetGeneratorTargets()); |
| 255 | } |
| 256 | for (cmGeneratorTarget* gt : targetList) { |
| 257 | if (this->IsInstrumentableTargetType(gt->GetType())) { |
| 258 | Json::Value target = Json::objectValue; |
| 259 | auto labels = gt->GetSafeProperty("LABELS"); |
| 260 | target["labels"] = Json::arrayValue; |
| 261 | for (auto const& item : cmList(labels)) { |
| 262 | target["labels"].append(item); |
| 263 | } |
| 264 | target["type"] = cmState::GetTargetTypeName(gt->GetType()).c_str(); |
| 265 | targets[gt->GetName()] = target; |
| 266 | } |
| 267 | } |
| 268 | return targets; |
| 269 | } |
| 270 | |
| 271 | std::string cmInstrumentation::GetFileByTimestamp( |
| 272 | cmInstrumentation::LatestOrOldest order, std::string const& dataSubdir, |
no test coverage detected