// These methods return the wasm::CodeBlock (resp. wasm::Code) containing // the given pc, if any exist in the process. These methods do not take a lock, // and thus are safe to use in a profiling context.
// Return whether the given PC is in any type of wasm code (module or builtin).
bool InCompiledCode(void* pc);
// A bool member that can be used as a very fast lookup to know if there is any // code segment at all.
extern mozilla::Atomic<bool> CodeExists;
// These methods allow to (un)register CodeBlocks so they can be looked up // via pc in the methods described above.
bool RegisterCodeBlock(const CodeBlock* cs);
void UnregisterCodeBlock(const CodeBlock* cs);
// Whether this process is configured to use huge memory or not. Note that this // is not precise enough to tell whether a particular memory uses huge memory, // there are additional conditions for that.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.