LCOV - code coverage report
Current view: top level - gjs - context.cpp (source / functions) Coverage Total Hit
Test: gjs-1.88.0 Code Coverage Lines: 82.1 % 895 735
Test Date: 2026-06-07 00:56:06 Functions: 87.2 % 94 82
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 65.1 % 350 228

Function Name Sort by function name Hit count Sort by function hit count
_ZL14dump_heap_idlePv 0
_ZL22gjs_context_dump_heapsv 0
_ZL24dump_heap_signal_handleri 0
_ZL24gjs_context_get_propertyP8_GObjectjP7_GValueP11_GParamSpec 0
_ZN17GjsContextPrivate19EnvironmentPreparer6invokeEN2JS6HandleIP8JSObjectEERN2js25ScriptEnvironmentPreparer7ClosureE 0
_ZN17GjsContextPrivate20trigger_gc_if_neededEPv 0
_ZZL19load_context_moduleP9JSContextPKcS2_ENKUlS0_jPN2JS5ValueEE_clES0_jS5_ 0
_ZZN17GjsContextPrivateC4EP9JSContextP11_GjsContextENKUlS3_26GMemoryMonitorWarningLevelE_clES3_S4_ 0
gjs_context_gc 0
gjs_context_maybe_gc 0
gjs_context_define_string_array 1
gjs_context_run_in_realm 1
_ZN17GjsContextPrivate16exit_immediatelyEh 2
gjs_get_js_version 2
_ZL40on_context_module_rejected_log_exceptionP9JSContextjPN2JS5ValueE 3
_ZN17GjsContextPrivate35queue_finalization_registry_cleanupEP10JSFunction 5
gjs_context_get_profiler 12
_ZN17GjsContextPrivate38unregister_unhandled_promise_rejectionEm 25
_ZN17GjsContextPrivate36register_unhandled_promise_rejectionEmON7mozilla9UniquePtrIA_cN2JS10FreePolicyEEE 26
_ZN17GjsContextPrivate4exitEh 35
gjs_context_eval_file 40
gjs_context_get_all 44
_ZN17GjsContextPrivate18run_main_loop_hookEv 52
_ZN17GjsContextPrivate18set_main_loop_hookEP8JSObject 52
gjs_context_set_argv 63
_ZN17GjsContextPrivate8set_argsEOSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE 64
_ZN17GjsContextPrivate16build_args_arrayEv 66
gjs_context_new_with_search_path 76
_ZL22gjs_context_class_initP15GjsContextClass 115
gjs_context_new 116
_ZN17GjsContextPrivate28async_closure_enqueue_for_gcEPN3Gjs7ClosureE 134
gjs_context_eval_module_file 144
_ZN17GjsContextPrivate11eval_moduleEPKcPh 156
gjs_context_eval_module 156
_ZN17GjsContextPrivate15register_moduleEPKcS1_ 158
gjs_context_register_module 158
_ZN17GjsContextPrivate29register_non_module_sourcemapEPKcS1_ 232
_ZN17GjsContextPrivate4evalEPKcmS1_Pi 232
gjs_context_eval 232
_ZN17GjsContextPrivate15eval_with_scopeEN2JS6HandleIP8JSObjectEEPKcmS6_NS0_13MutableHandleINS0_5ValueEEE 235
_ZL19gjs_context_disposeP8_GObject 254
_ZL20gjs_context_finalizeP8_GObject 254
_ZN17GjsContextPrivate13free_profilerEv 254
_ZN17GjsContextPrivate7disposeEv 254
_ZN17GjsContextPrivateD0Ev 254
_ZN17GjsContextPrivateD0Ev 0
_ZN17GjsContextPrivateD2Ev 254
_ZL15setup_dump_heapv 256
_ZL16gjs_context_initP11_GjsContext 256
_ZL23gjs_context_constructedP8_GObject 256
_ZN17GjsContextPrivateC2EP9JSContextP11_GjsContext 256
gjs_context_get_repl_history_path 256
_ZN17GjsContextPrivate5traceEP8JSTracerPv 349
_ZN17GjsContextPrivate16handle_exit_codeEbPKcS1_Ph 382
_ZN17GjsContextPrivate17auto_profile_exitEb 382
_ZN17GjsContextPrivate18auto_profile_enterEv 388
gjs_context_make_current 510
_ZL19load_context_moduleP9JSContextPKcS2_ 512
_ZL11result_to_cN7mozilla6ResultINS_2OkEN3Gjs9AutoErrorEEEPP7_GError 544
_ZL26on_context_module_resolvedP9JSContextjPN2JS5ValueE 654
_ZL21add_promise_reactionsP9JSContextN2JS6HandleINS1_5ValueEEEPFbS0_jPS3_ES7_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE 663
_ZN17GjsContextPrivate21on_garbage_collectionE10JSGCStatusN2JS8GCReasonE 1046
_ZZN17GjsContextPrivateC4EP9JSContextP11_GjsContextENKUlS1_10JSGCStatusN2JS8GCReasonEPvE_clES1_S4_S6_S7_ 1046
_ZN17GjsContextPrivate17enqueuePromiseJobEP9JSContextN2JS6HandleIP8JSObjectEES6_S6_S6_ 1416
_ZNK17GjsContextPrivate18getHostDefinedDataEP9JSContextN2JS13MutableHandleIP8JSObjectEE 1424
gjs_context_get_native_context 1651
_ZL24gjs_context_set_propertyP8_GObjectjPK7_GValueP11_GParamSpec 1792
_ZN3Gjs17AutoInternalRealmC2EP9JSContext 2304
_ZN17GjsContextPrivate11from_objectEP8_GObject 2556
_ZN3Gjs17AutoInternalRealmC2EP17GjsContextPrivate 2560
_ZN17GjsContextPrivate13call_functionEN2JS6HandleIP8JSObjectEENS1_INS0_5ValueEEERKNS0_16HandleValueArrayENS0_13MutableHandleIS5_EE 2698
_ZNK17GjsContextPrivate11should_exitEPh 3340
_ZN17GjsContextPrivate10SavedQueueC2EPS_ 3564
_ZN17GjsContextPrivate10SavedQueueD0Ev 3564
_ZN17GjsContextPrivate10SavedQueueD0Ev 0
_ZN17GjsContextPrivate10SavedQueueD2Ev 3564
_ZN17GjsContextPrivate12saveJobQueueEP9JSContext 3564
_ZN17GjsContextPrivate23stop_draining_job_queueEv 3818
_ZN17GjsContextPrivate24start_draining_job_queueEv 3820
_ZN17GjsContextPrivate20from_current_contextEv 5393
gjs_context_get_current 7005
_ZN17GjsContextPrivate11from_objectEP11_GjsContext 8028
_ZN17GjsContextPrivate7runJobsEP9JSContext 10644
_ZN17GjsContextPrivate17run_jobs_fallibleEv 10673
_ZN17GjsContextPrivate39warn_about_unhandled_promise_rejectionsEv 10894
_ZN17GjsContextPrivate33run_finalization_registry_cleanupEv 11471
_ZN17GjsContextPrivate19unregister_notifierEPFvP9JSContextPvES2_ 14621
_ZN17GjsContextPrivate17register_notifierEPFvP9JSContextPvES2_ 14834
_ZN17GjsContextPrivate21schedule_gc_if_neededEv 15150
_ZN17GjsContextPrivate20schedule_gc_internalEb 16748
_ZN3Gjs13AutoMainRealmC2EP9JSContext 23946
_ZN3Gjs13AutoMainRealmC2EP17GjsContextPrivate 25760
gjs_context_get_type 27417
_ZL25gjs_context_get_type_oncev 115
_ZL29gjs_context_class_intern_initPv 115
_ZL32gjs_context_get_instance_privateP11_GjsContext 10584
gjs_context_get_type 16603

Generated by: LCOV version 2.0-1