-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Missing methods on INCOMING_MODULE_JS_API, like onMalloc
#21410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I see What is the error that you are seeing exactly? What are you trying to use |
BTW, if you are using cmake you can avoid the Also, I'm not sure how |
I have tried using When I log the [
"locateFile",
"INITIAL_MEMORY",
"wasmMemory",
"ready",
"expectedDataFileDownloads",
"preRun",
"onAbort",
"FS_createPath",
"FS_createDataFile",
"FS_createPreloadedFile",
"FS_unlink",
"FS_createLazyFile",
"FS_createDevice",
"InternalError",
"BindingError",
"getInheritedInstanceCount",
"getLiveInheritedInstances",
"flushPendingDeletes",
"setDelayFunction",
"UnboundTypeError",
"count_emval_handles",
"get_first_emval",
"emscripten_trace_configure",
"emscripten_trace_configure_for_google_wtf",
"emscripten_trace_enter_context",
"emscripten_trace_exit_context",
"emscripten_trace_log_message",
"emscripten_trace_mark",
"_fflush",
"___getTypeName",
"__embind_initialize_bindings",
"dynCall_ji",
"dynCall_jiji",
"dynCall_viijii",
"dynCall_iiiiij",
"dynCall_iiiiijj",
"dynCall_iiiiiijj",
"__ZN2MB2NN28LinearDefragmentingAllocator10Allocation4nullE",
"___heap_base",
"___start_em_js",
"___stop_em_js",
"addRunDependency",
"removeRunDependency",
"dataFileDownloads",
"asm",
"HEAP8",
"HEAP16",
"HEAP32",
"HEAPU8",
"HEAPU16",
"HEAPU32",
"HEAPF32",
"HEAPF64",
"preloadResults",
"calledRun",
"stdin",
"stdout",
"stderr"
] All of this might be way over my head, but what would be the correct way of debugging memory usage on a web worker? |
Regarding the exports on the module object, I would love to reduce those. I recently landed #21439 which removes the HEAPXX exports in My first question is, are these exports causing any kind of runtime failure for you? Secondly, I see |
Regarding |
My question was more in line if I should expect all things in
Would be extremely helpful if there was just an optional callback that would be exposed on the
Will check and get back to you. |
The By adding or removing things from the last list you make emscripten more or less configurable. Setting it to the empty list give you the smallest output.. but then you have a less configurable module. |
Uh oh!
There was an error while loading. Please reload this page.
Please include the following in your bug report:
Version of emscripten/emsdk:
3.1.32
CMAKE link options:
Looking at the output .js files, or logging the
Module
object, there are tons of things missing from https://github.com/emscripten-core/emscripten/blob/main/src/settings.js#L951C5-L965.I'd especially need methods that are related to memory management. Is there any reason why they aren't included?
The text was updated successfully, but these errors were encountered: