You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
system_profiler = <gprofiler.profilers.perf.SystemProfiler object at 0xffffa4cb4ee0>, application_pid = 1478804, runtime = 'native_dwarf', perf_mode = 'smart', application_docker_container = <Container: 51caf27de4>
@pytest.mark.parametrize("runtime", ["native_fp", "native_dwarf"])
@pytest.mark.parametrize("perf_mode", ["fp", "dwarf", "smart"])
@pytest.mark.parametrize("in_container", [True]) # native app is built only for container
def test_perf_fp_dwarf_smart(
system_profiler: SystemProfiler,
application_pid: int,
runtime: str,
perf_mode: str,
application_docker_container: Container,
) -> None:
with system_profiler as profiler:
process_profile = snapshot_pid_profile(profiler, application_pid)
process_collapsed = process_profile.stacks
with open("perf.txt","a") as f:
f.write(str(process_collapsed))
f.write("")
if runtime == "native_dwarf":
# app is built with DWARF info and without FP, so we expect to see a callstack only in DWARF or smart modes.
> assert is_function_in_collapsed(";recursive;recursive;recursive;recursive;", process_collapsed) ^ bool(
perf_mode not in ("dwarf", "smart")
)
E AssertionError: assert (False ^ False)
E + where False = is_function_in_collapsed(';recursive;recursive;recursive;recursive;', Counter({'native;_start;recursive': 90}))
E + and False = bool('smart' not in ('dwarf', 'smart'))
tests/test_perf.py:66: AssertionError
The text was updated successfully, but these errors were encountered:
Failing tests:
Exemplary output:
The text was updated successfully, but these errors were encountered: