MCPcopy Create free account
hub / github.com/KDAB/GammaRay / benchModelObjectAdded

Method benchModelObjectAdded

tests/quickinspectorbench.cpp:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 void benchModelObjectAdded()
35 {
36 QQuickView view;
37 auto root = view.contentItem();
38 QuickItemModel model;
39 model.setWindow(&view);
40 const auto items = createItems(root);
41
42 QBENCHMARK_ONCE
43 {
44 for (auto item : items) {
45 model.objectAdded(item);
46 }
47 }
48 }
49
50 void benchModelItemUpdated()
51 {

Callers

nothing calls this directly

Calls 2

setWindowMethod · 0.45
objectAddedMethod · 0.45

Tested by

no test coverage detected