MCPcopy Create free account
hub / github.com/Snapchat/Valdi / removeUnusedResources

Method removeUnusedResources

valdi/src/valdi/runtime/Runtime.cpp:230–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 if constexpr (kTCPSocketEnabled) {
229 registerNativeModuleFactory(makeShared<TCPSocketModuleFactory>().toShared());
230 }
231 }
232
233 if (Valdi::traceInitialization) {
234 VALDI_INFO(*_logger, "Initialized Valdi Runtime");
235 }
236}
237
238void Runtime::removeUnusedResources() {
239 if (_javaScriptRuntime != nullptr) {
240 auto self = strongSmallRef(this);

Callers 1

Calls 2

strongSmallRefFunction · 0.85
unloadUnusedModulesMethod · 0.80

Tested by

no test coverage detected