Skip to content
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

fix broken python 3.10 test #45

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 25 additions & 39 deletions scenarios/python_basic_3.11/expected_profile.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,62 @@
{
"test_name": "python_basic",
"scale_by_duration": true,
"pprof-regex": "",
"stacks": [
{
"profile-type": "wall-time",
"pprof-regex": "",
"stack-content": [
{
"regular_expression": "_bootstrap;_bootstrap_inner;run;wait;wait",
"percent": 22,
"error_margin": 3,
"regular_expression": "^periodic$",
"percent": 40,
"error_margin": 6,
"labels": [
{
"key": "thread name",
"values": [
"ddtrace.profiling.scheduler:Scheduler"
]
}
]
},
{
"regular_expression": "_bootstrap;_bootstrap_inner;run;wait;wait",
"percent": 22,
"error_margin": 3,
"labels": [
"ddtrace.profiling.collector.stack:StackCollector"
],
"values_regex": ""
},
{
"key": "thread name",
"key": "class name",
"values": [
"ddtrace.profiling.collector.memalloc:MemoryCollector"
]
"StackCollector"
],
"values_regex": ""
}
]
},
{
"regular_expression": "_bootstrap;_bootstrap_inner;run;periodic",
"percent": 22,
"regular_expression": "^\u003cmodule\u003e;target$",
"percent": 40,
"error_margin": 3,
"labels": [
{
"key": "thread name",
"values": [
"ddtrace.profiling.collector.stack:StackCollector"
]
}
]
},
{
"regular_expression": "<module>;target",
"percent": 22,
"error_margin": 2,
"labels": [
{
"key": "thread name",
"values": [
"MainThread"
]
],
"values_regex": ""
}
]
},
{
"regular_expression": "_bootstrap;_bootstrap_inner;run;target",
"percent": 11,
"error_margin": 2,
"regular_expression": "^_bootstrap;_bootstrap_inner;run;target$",
"percent": 19,
"error_margin": 3,
"labels": [
{
"key": "thread name",
"values": [
"Thread-1 (target)"
]
],
"values_regex": ""
}
]
}
]
}
],
"scale_by_duration": true
}
]
}
92 changes: 41 additions & 51 deletions scenarios/python_basic_gevent/expected_profile.json
Original file line number Diff line number Diff line change
@@ -1,107 +1,97 @@
{
"test_name": "python_basic",
"scale_by_duration": true,
"pprof-regex": "",
"stacks": [
{
"profile-type": "wall-time",
"pprof-regex": "",
"stack-content": [
{
"regular_expression": "_bootstrap;_bootstrap_inner;run;wait;wait",
"percent": 11,
"error_margin": 2,
"labels": [
{
"key": "thread name",
"values": [
"ddtrace.profiling.scheduler:Scheduler"
]
}
]
},
{
"regular_expression": "_bootstrap;_bootstrap_inner;run;wait;wait",
"percent": 11,
"error_margin": 2,
"regular_expression": "^periodic$",
"percent": 32,
"error_margin": 5,
"labels": [
{
"key": "thread name",
"key": "class name",
"values": [
"ddtrace.profiling.collector.memalloc:MemoryCollector"
]
}
]
},
{
"regular_expression": "_bootstrap;_bootstrap_inner;run;periodic",
"percent": 11,
"error_margin": 2,
"labels": [
"StackCollector"
],
"values_regex": ""
},
{
"key": "thread name",
"values": [
"ddtrace.profiling.collector.stack:StackCollector"
]
],
"values_regex": ""
}
]
},
{
"regular_expression": "run",
"percent": 5,
"regular_expression": "^\u003cmodule\u003e;target;sleep$",
"percent": 23,
"error_margin": 4,
"labels": [
{
"key": "thread name",
"values": [
"MainThread"
]
],
"values_regex": ""
},
{
"key": "class name",
"key": "task name",
"values": [
"Hub"
]
"MainThread"
],
"values_regex": ""
}
]
},
{
"regular_expression": "<module>;target;sleep",
"percent": 5,
"regular_expression": "^run$",
"percent": 23,
"error_margin": 4,
"labels": [
{
"key": "thread name",
"values": [
"MainThread"
]
],
"values_regex": ""
},
{
"key": "task name",
"key": "class name",
"values": [
"MainThread"
]
"Hub"
],
"values_regex": ""
}
]
},
{
"regular_expression": "_bootstrap;_bootstrap_inner;run;target;sleep",
"percent": 4,
"regular_expression": "^_bootstrap;_bootstrap_inner;run;target;sleep$",
"percent": 11,
"error_margin": 2,
"labels": [
{
"key": "thread name",
"key": "task name",
"values": [
"MainThread"
]
"Thread-1 (target)"
],
"values_regex": ""
},
{
"key": "task name",
"key": "thread name",
"values": [
"Thread-1 (target)"
]
"MainThread"
],
"values_regex": ""
}
]
}
]
}
],
"scale_by_duration": true
}
]
}
Loading