MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / func_name

Method func_name

crates/c-api/include/wasmtime/trap.hh:38–44  ·  view source on GitHub ↗

Returns the name, if present, associated with this function. Note that this requires that the `name` section is present in the original WebAssembly binary.

Source from the content-addressed store, hash-verified

36 /// Note that this requires that the `name` section is present in the original
37 /// WebAssembly binary.
38 std::optional<std::string_view> func_name() const {
39 const auto *name = wasmtime_frame_func_name(frame);
40 if (name != nullptr) {
41 return std::string_view(name->data, name->size);
42 }
43 return std::nullopt;
44 }
45
46 /// Returns the name, if present, associated with this function's module.
47 ///

Callers 2

wasmtime_frame_func_nameFunction · 0.45
TESTFunction · 0.45

Calls 1

wasmtime_frame_func_nameFunction · 0.85

Tested by 1

TESTFunction · 0.36