mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
This creates a SysprofCallgraph object which is a GListModel of SysprofCallgraphFrame. The SysprofCallgraphFrame is also a GListModel of SysprofCallgraphFrame so that we can map this all into a GtkListView in the future for tree-like visibility. The augmentation allows for the same callgraph code to be used for multiple scenarios such as CPU sampling as well as memory allocation tracking. If your augmentation size is <=sizeof(void*) then you do not occur an extra allocation and you can use the inline augmentation space. The test-callgraph clearly shows that we still need to do the shuffling of -- Kernel -- and -- User -- like the old callgraph code did. But that will come soon enough.
42 lines
1.2 KiB
Meson
42 lines
1.2 KiB
Meson
libsysprof_analyze_test_env = [
|
|
'G_DEBUG=gc-friendly',
|
|
'GSETTINGS_BACKEND=memory',
|
|
'MALLOC_CHECK_=2',
|
|
]
|
|
|
|
libsysprof_analyze_testsuite_c_args = [
|
|
'-DG_LOG_DOMAIN="libdex"',
|
|
'-DG_ENABLE_DEBUG',
|
|
'-UG_DISABLE_ASSERT',
|
|
'-UG_DISABLE_CAST_CHECKS',
|
|
]
|
|
|
|
libsysprof_analyze_testsuite = {
|
|
'test-callgraph' : {'skip': true},
|
|
'test-capture-model' : {'skip': true},
|
|
'test-elf-loader' : {'skip': true},
|
|
'test-list-counters' : {'skip': true},
|
|
'test-list-files' : {'skip': true},
|
|
'test-list-jitmap' : {'skip': true},
|
|
'test-list-overlays' : {'skip': true},
|
|
'test-print-file' : {'skip': true},
|
|
'test-list-processes' : {'skip': true},
|
|
'test-list-address-layout' : {'skip': true},
|
|
'test-symbolize' : {'skip': true},
|
|
'test-symbol-cache' : {},
|
|
}
|
|
|
|
libsysprof_analyze_testsuite_deps = [
|
|
libsysprof_analyze_static_dep,
|
|
]
|
|
|
|
foreach test, params: libsysprof_analyze_testsuite
|
|
test_exe = executable(test, '@0@.c'.format(test),
|
|
c_args: libsysprof_analyze_testsuite_c_args,
|
|
dependencies: libsysprof_analyze_testsuite_deps,
|
|
)
|
|
if not params.get('skip', false)
|
|
test(test, test_exe, env: libsysprof_analyze_test_env)
|
|
endif
|
|
endforeach
|