Skip to content

Commit

Permalink
fix broken python 3.10 test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchda committed Aug 2, 2024
1 parent cf4f59f commit 1d1f2c2
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 90 deletions.
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
}
]
}

0 comments on commit 1d1f2c2

Please sign in to comment.