| 68 | } |
| 69 | |
| 70 | void AddWorkloadStructure(std::unique_ptr<TimelineUtilityMethods>& timelineUtils, |
| 71 | std::unique_ptr<IWorkload>& workload, |
| 72 | const Layer& layer) |
| 73 | { |
| 74 | // Add workload to the post-optimisation network structure |
| 75 | timelineUtils->CreateTypedEntity(workload->GetGuid(), LabelsAndEventClasses::WORKLOAD_GUID); |
| 76 | timelineUtils->MarkEntityWithLabel(workload->GetGuid(), |
| 77 | layer.GetBackendId().Get(), |
| 78 | LabelsAndEventClasses::BACKENDID_GUID); |
| 79 | |
| 80 | // Link the workload to the layer |
| 81 | timelineUtils->CreateRelationship(ProfilingRelationshipType::RetentionLink, |
| 82 | layer.GetGuid(), |
| 83 | workload->GetGuid(), |
| 84 | LabelsAndEventClasses::CHILD_GUID); |
| 85 | } |
| 86 | |
| 87 | } // anonymous |
| 88 |
no test coverage detected