winrt-Windows.System.Diagnostics.TraceReporting 2.0.1__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/PKG-INFO +3 -3
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/all-requirements.txt +2 -2
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/py.Windows.System.Diagnostics.TraceReporting.cpp +120 -131
- winrt_windows_system_diagnostics_tracereporting-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/requirements.txt +2 -2
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/winrt/_winrt_windows_system_diagnostics_tracereporting.pyi +6 -7
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/winrt/windows/system/diagnostics/tracereporting/__init__.py +1 -1
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/PKG-INFO +3 -3
- winrt_windows_system_diagnostics_tracereporting-2.1.0/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/requires.txt +4 -0
- winrt_windows_system_diagnostics_tracereporting-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_system_diagnostics_tracereporting-2.0.1/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/requires.txt +0 -4
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/README.md +0 -0
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/setup.cfg +0 -0
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/setup.py +0 -0
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/winrt/windows/system/diagnostics/tracereporting/py.typed +0 -0
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_diagnostics_tracereporting-2.0.1 → winrt_windows_system_diagnostics_tracereporting-2.1.0}/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Diagnostics.TraceReporting
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,9 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation.Collections[all]==2.0
|
|
3
|
+
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Diagnostics.TraceReporting.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
7
6
|
{
|
|
8
7
|
// ----- PlatformDiagnosticActions class --------------------
|
|
@@ -20,14 +19,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
20
19
|
|
|
21
20
|
if (arg_count == 5)
|
|
22
21
|
{
|
|
23
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"DownloadLatestSettingsForNamespace", 5))
|
|
24
|
-
{
|
|
25
|
-
py::set_arg_count_version_error(5);
|
|
26
|
-
return nullptr;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
22
|
try
|
|
30
23
|
{
|
|
24
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"DownloadLatestSettingsForNamespace", 5))
|
|
25
|
+
{
|
|
26
|
+
py::set_arg_count_version_error(5);
|
|
27
|
+
return nullptr;
|
|
28
|
+
}
|
|
29
|
+
|
|
31
30
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
32
31
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
33
32
|
auto param2 = py::convert_to<bool>(args, 2);
|
|
@@ -55,14 +54,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
55
54
|
|
|
56
55
|
if (arg_count == 3)
|
|
57
56
|
{
|
|
58
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"ForceUpload", 3))
|
|
59
|
-
{
|
|
60
|
-
py::set_arg_count_version_error(3);
|
|
61
|
-
return nullptr;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
57
|
try
|
|
65
58
|
{
|
|
59
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"ForceUpload", 3))
|
|
60
|
+
{
|
|
61
|
+
py::set_arg_count_version_error(3);
|
|
62
|
+
return nullptr;
|
|
63
|
+
}
|
|
64
|
+
|
|
66
65
|
auto param0 = py::convert_to<winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticEventBufferLatencies>(args, 0);
|
|
67
66
|
auto param1 = py::convert_to<bool>(args, 1);
|
|
68
67
|
auto param2 = py::convert_to<bool>(args, 2);
|
|
@@ -88,14 +87,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
88
87
|
|
|
89
88
|
if (arg_count == 0)
|
|
90
89
|
{
|
|
91
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"GetActiveScenarioList", 0))
|
|
92
|
-
{
|
|
93
|
-
py::set_arg_count_version_error(0);
|
|
94
|
-
return nullptr;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
90
|
try
|
|
98
91
|
{
|
|
92
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"GetActiveScenarioList", 0))
|
|
93
|
+
{
|
|
94
|
+
py::set_arg_count_version_error(0);
|
|
95
|
+
return nullptr;
|
|
96
|
+
}
|
|
97
|
+
|
|
99
98
|
return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::GetActiveScenarioList());
|
|
100
99
|
}
|
|
101
100
|
catch (...)
|
|
@@ -117,14 +116,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
117
116
|
|
|
118
117
|
if (arg_count == 1)
|
|
119
118
|
{
|
|
120
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"GetActiveTraceRuntime", 1))
|
|
121
|
-
{
|
|
122
|
-
py::set_arg_count_version_error(1);
|
|
123
|
-
return nullptr;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
119
|
try
|
|
127
120
|
{
|
|
121
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"GetActiveTraceRuntime", 1))
|
|
122
|
+
{
|
|
123
|
+
py::set_arg_count_version_error(1);
|
|
124
|
+
return nullptr;
|
|
125
|
+
}
|
|
126
|
+
|
|
128
127
|
auto param0 = py::convert_to<winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceSlotType>(args, 0);
|
|
129
128
|
|
|
130
129
|
return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::GetActiveTraceRuntime(param0));
|
|
@@ -148,14 +147,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
148
147
|
|
|
149
148
|
if (arg_count == 1)
|
|
150
149
|
{
|
|
151
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"GetKnownTraceList", 1))
|
|
152
|
-
{
|
|
153
|
-
py::set_arg_count_version_error(1);
|
|
154
|
-
return nullptr;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
150
|
try
|
|
158
151
|
{
|
|
152
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"GetKnownTraceList", 1))
|
|
153
|
+
{
|
|
154
|
+
py::set_arg_count_version_error(1);
|
|
155
|
+
return nullptr;
|
|
156
|
+
}
|
|
157
|
+
|
|
159
158
|
auto param0 = py::convert_to<winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceSlotType>(args, 0);
|
|
160
159
|
|
|
161
160
|
return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::GetKnownTraceList(param0));
|
|
@@ -179,14 +178,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
179
178
|
|
|
180
179
|
if (arg_count == 1)
|
|
181
180
|
{
|
|
182
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"IsScenarioEnabled", 1))
|
|
183
|
-
{
|
|
184
|
-
py::set_arg_count_version_error(1);
|
|
185
|
-
return nullptr;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
181
|
try
|
|
189
182
|
{
|
|
183
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"IsScenarioEnabled", 1))
|
|
184
|
+
{
|
|
185
|
+
py::set_arg_count_version_error(1);
|
|
186
|
+
return nullptr;
|
|
187
|
+
}
|
|
188
|
+
|
|
190
189
|
auto param0 = py::convert_to<winrt::guid>(args, 0);
|
|
191
190
|
|
|
192
191
|
return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::IsScenarioEnabled(param0));
|
|
@@ -210,14 +209,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
210
209
|
|
|
211
210
|
if (arg_count == 3)
|
|
212
211
|
{
|
|
213
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"IsTraceRunning", 3))
|
|
214
|
-
{
|
|
215
|
-
py::set_arg_count_version_error(3);
|
|
216
|
-
return nullptr;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
212
|
try
|
|
220
213
|
{
|
|
214
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"IsTraceRunning", 3))
|
|
215
|
+
{
|
|
216
|
+
py::set_arg_count_version_error(3);
|
|
217
|
+
return nullptr;
|
|
218
|
+
}
|
|
219
|
+
|
|
221
220
|
auto param0 = py::convert_to<winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceSlotType>(args, 0);
|
|
222
221
|
auto param1 = py::convert_to<winrt::guid>(args, 1);
|
|
223
222
|
auto param2 = py::convert_to<uint64_t>(args, 2);
|
|
@@ -243,14 +242,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
243
242
|
|
|
244
243
|
if (arg_count == 6)
|
|
245
244
|
{
|
|
246
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"TryEscalateScenario", 6))
|
|
247
|
-
{
|
|
248
|
-
py::set_arg_count_version_error(6);
|
|
249
|
-
return nullptr;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
245
|
try
|
|
253
246
|
{
|
|
247
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions", L"TryEscalateScenario", 6))
|
|
248
|
+
{
|
|
249
|
+
py::set_arg_count_version_error(6);
|
|
250
|
+
return nullptr;
|
|
251
|
+
}
|
|
252
|
+
|
|
254
253
|
auto param0 = py::convert_to<winrt::guid>(args, 0);
|
|
255
254
|
auto param1 = py::convert_to<winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticEscalationType>(args, 1);
|
|
256
255
|
auto param2 = py::convert_to<winrt::hstring>(args, 2);
|
|
@@ -281,22 +280,19 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
281
280
|
{ }
|
|
282
281
|
};
|
|
283
282
|
|
|
284
|
-
static PyType_Slot _type_slots_PlatformDiagnosticActions[] =
|
|
285
|
-
{
|
|
283
|
+
static PyType_Slot _type_slots_PlatformDiagnosticActions[] = {
|
|
286
284
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PlatformDiagnosticActions) },
|
|
287
285
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformDiagnosticActions) },
|
|
288
286
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformDiagnosticActions) },
|
|
289
|
-
{ }
|
|
287
|
+
{ }
|
|
290
288
|
};
|
|
291
289
|
|
|
292
|
-
static PyType_Spec type_spec_PlatformDiagnosticActions =
|
|
293
|
-
{
|
|
290
|
+
static PyType_Spec type_spec_PlatformDiagnosticActions = {
|
|
294
291
|
"winrt._winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticActions",
|
|
295
292
|
0,
|
|
296
293
|
0,
|
|
297
294
|
Py_TPFLAGS_DEFAULT,
|
|
298
|
-
_type_slots_PlatformDiagnosticActions
|
|
299
|
-
};
|
|
295
|
+
_type_slots_PlatformDiagnosticActions};
|
|
300
296
|
|
|
301
297
|
static PyGetSetDef getset_PlatformDiagnosticActions_Static[] = {
|
|
302
298
|
{ }
|
|
@@ -350,14 +346,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
350
346
|
|
|
351
347
|
static PyObject* PlatformDiagnosticTraceInfo_get_IsAutoLogger(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceInfo* self, void* /*unused*/) noexcept
|
|
352
348
|
{
|
|
353
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"IsAutoLogger"))
|
|
354
|
-
{
|
|
355
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
356
|
-
return nullptr;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
349
|
try
|
|
360
350
|
{
|
|
351
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"IsAutoLogger"))
|
|
352
|
+
{
|
|
353
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
354
|
+
return nullptr;
|
|
355
|
+
}
|
|
356
|
+
|
|
361
357
|
return py::convert(self->obj.IsAutoLogger());
|
|
362
358
|
}
|
|
363
359
|
catch (...)
|
|
@@ -369,14 +365,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
369
365
|
|
|
370
366
|
static PyObject* PlatformDiagnosticTraceInfo_get_IsExclusive(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceInfo* self, void* /*unused*/) noexcept
|
|
371
367
|
{
|
|
372
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"IsExclusive"))
|
|
373
|
-
{
|
|
374
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
375
|
-
return nullptr;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
368
|
try
|
|
379
369
|
{
|
|
370
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"IsExclusive"))
|
|
371
|
+
{
|
|
372
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
373
|
+
return nullptr;
|
|
374
|
+
}
|
|
375
|
+
|
|
380
376
|
return py::convert(self->obj.IsExclusive());
|
|
381
377
|
}
|
|
382
378
|
catch (...)
|
|
@@ -388,14 +384,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
388
384
|
|
|
389
385
|
static PyObject* PlatformDiagnosticTraceInfo_get_MaxTraceDurationFileTime(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceInfo* self, void* /*unused*/) noexcept
|
|
390
386
|
{
|
|
391
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"MaxTraceDurationFileTime"))
|
|
392
|
-
{
|
|
393
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
394
|
-
return nullptr;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
387
|
try
|
|
398
388
|
{
|
|
389
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"MaxTraceDurationFileTime"))
|
|
390
|
+
{
|
|
391
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
392
|
+
return nullptr;
|
|
393
|
+
}
|
|
394
|
+
|
|
399
395
|
return py::convert(self->obj.MaxTraceDurationFileTime());
|
|
400
396
|
}
|
|
401
397
|
catch (...)
|
|
@@ -407,14 +403,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
407
403
|
|
|
408
404
|
static PyObject* PlatformDiagnosticTraceInfo_get_Priority(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceInfo* self, void* /*unused*/) noexcept
|
|
409
405
|
{
|
|
410
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"Priority"))
|
|
411
|
-
{
|
|
412
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
413
|
-
return nullptr;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
406
|
try
|
|
417
407
|
{
|
|
408
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"Priority"))
|
|
409
|
+
{
|
|
410
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
411
|
+
return nullptr;
|
|
412
|
+
}
|
|
413
|
+
|
|
418
414
|
return py::convert(self->obj.Priority());
|
|
419
415
|
}
|
|
420
416
|
catch (...)
|
|
@@ -426,14 +422,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
426
422
|
|
|
427
423
|
static PyObject* PlatformDiagnosticTraceInfo_get_ProfileHash(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceInfo* self, void* /*unused*/) noexcept
|
|
428
424
|
{
|
|
429
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"ProfileHash"))
|
|
430
|
-
{
|
|
431
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
432
|
-
return nullptr;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
425
|
try
|
|
436
426
|
{
|
|
427
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"ProfileHash"))
|
|
428
|
+
{
|
|
429
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
430
|
+
return nullptr;
|
|
431
|
+
}
|
|
432
|
+
|
|
437
433
|
return py::convert(self->obj.ProfileHash());
|
|
438
434
|
}
|
|
439
435
|
catch (...)
|
|
@@ -445,14 +441,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
445
441
|
|
|
446
442
|
static PyObject* PlatformDiagnosticTraceInfo_get_ScenarioId(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceInfo* self, void* /*unused*/) noexcept
|
|
447
443
|
{
|
|
448
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"ScenarioId"))
|
|
449
|
-
{
|
|
450
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
451
|
-
return nullptr;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
444
|
try
|
|
455
445
|
{
|
|
446
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo", L"ScenarioId"))
|
|
447
|
+
{
|
|
448
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
449
|
+
return nullptr;
|
|
450
|
+
}
|
|
451
|
+
|
|
456
452
|
return py::convert(self->obj.ScenarioId());
|
|
457
453
|
}
|
|
458
454
|
catch (...)
|
|
@@ -502,23 +498,20 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
502
498
|
{ }
|
|
503
499
|
};
|
|
504
500
|
|
|
505
|
-
static PyType_Slot _type_slots_PlatformDiagnosticTraceInfo[] =
|
|
506
|
-
{
|
|
501
|
+
static PyType_Slot _type_slots_PlatformDiagnosticTraceInfo[] = {
|
|
507
502
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PlatformDiagnosticTraceInfo) },
|
|
508
503
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformDiagnosticTraceInfo) },
|
|
509
504
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformDiagnosticTraceInfo) },
|
|
510
505
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformDiagnosticTraceInfo) },
|
|
511
|
-
{ }
|
|
506
|
+
{ }
|
|
512
507
|
};
|
|
513
508
|
|
|
514
|
-
static PyType_Spec type_spec_PlatformDiagnosticTraceInfo =
|
|
515
|
-
{
|
|
509
|
+
static PyType_Spec type_spec_PlatformDiagnosticTraceInfo = {
|
|
516
510
|
"winrt._winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticTraceInfo",
|
|
517
511
|
sizeof(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceInfo),
|
|
518
512
|
0,
|
|
519
513
|
Py_TPFLAGS_DEFAULT,
|
|
520
|
-
_type_slots_PlatformDiagnosticTraceInfo
|
|
521
|
-
};
|
|
514
|
+
_type_slots_PlatformDiagnosticTraceInfo};
|
|
522
515
|
|
|
523
516
|
// ----- PlatformDiagnosticTraceRuntimeInfo class --------------------
|
|
524
517
|
|
|
@@ -539,14 +532,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
539
532
|
|
|
540
533
|
static PyObject* PlatformDiagnosticTraceRuntimeInfo_get_EtwRuntimeFileTime(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceRuntimeInfo* self, void* /*unused*/) noexcept
|
|
541
534
|
{
|
|
542
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceRuntimeInfo", L"EtwRuntimeFileTime"))
|
|
543
|
-
{
|
|
544
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
545
|
-
return nullptr;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
535
|
try
|
|
549
536
|
{
|
|
537
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceRuntimeInfo", L"EtwRuntimeFileTime"))
|
|
538
|
+
{
|
|
539
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
540
|
+
return nullptr;
|
|
541
|
+
}
|
|
542
|
+
|
|
550
543
|
return py::convert(self->obj.EtwRuntimeFileTime());
|
|
551
544
|
}
|
|
552
545
|
catch (...)
|
|
@@ -558,14 +551,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
558
551
|
|
|
559
552
|
static PyObject* PlatformDiagnosticTraceRuntimeInfo_get_RuntimeFileTime(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceRuntimeInfo* self, void* /*unused*/) noexcept
|
|
560
553
|
{
|
|
561
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceRuntimeInfo", L"RuntimeFileTime"))
|
|
562
|
-
{
|
|
563
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
564
|
-
return nullptr;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
554
|
try
|
|
568
555
|
{
|
|
556
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceRuntimeInfo", L"RuntimeFileTime"))
|
|
557
|
+
{
|
|
558
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
559
|
+
return nullptr;
|
|
560
|
+
}
|
|
561
|
+
|
|
569
562
|
return py::convert(self->obj.RuntimeFileTime());
|
|
570
563
|
}
|
|
571
564
|
catch (...)
|
|
@@ -611,39 +604,35 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
|
611
604
|
{ }
|
|
612
605
|
};
|
|
613
606
|
|
|
614
|
-
static PyType_Slot _type_slots_PlatformDiagnosticTraceRuntimeInfo[] =
|
|
615
|
-
{
|
|
607
|
+
static PyType_Slot _type_slots_PlatformDiagnosticTraceRuntimeInfo[] = {
|
|
616
608
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PlatformDiagnosticTraceRuntimeInfo) },
|
|
617
609
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformDiagnosticTraceRuntimeInfo) },
|
|
618
610
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformDiagnosticTraceRuntimeInfo) },
|
|
619
611
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformDiagnosticTraceRuntimeInfo) },
|
|
620
|
-
{ }
|
|
612
|
+
{ }
|
|
621
613
|
};
|
|
622
614
|
|
|
623
|
-
static PyType_Spec type_spec_PlatformDiagnosticTraceRuntimeInfo =
|
|
624
|
-
{
|
|
615
|
+
static PyType_Spec type_spec_PlatformDiagnosticTraceRuntimeInfo = {
|
|
625
616
|
"winrt._winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticTraceRuntimeInfo",
|
|
626
617
|
sizeof(py::wrapper::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceRuntimeInfo),
|
|
627
618
|
0,
|
|
628
619
|
Py_TPFLAGS_DEFAULT,
|
|
629
|
-
_type_slots_PlatformDiagnosticTraceRuntimeInfo
|
|
630
|
-
};
|
|
620
|
+
_type_slots_PlatformDiagnosticTraceRuntimeInfo};
|
|
631
621
|
|
|
632
622
|
// ----- Windows.System.Diagnostics.TraceReporting Initialization --------------------
|
|
633
|
-
PyDoc_STRVAR(module_doc, "Windows::System::Diagnostics::TraceReporting");
|
|
634
|
-
|
|
635
623
|
|
|
636
|
-
|
|
637
|
-
= {PyModuleDef_HEAD_INIT,
|
|
638
|
-
"_winrt_windows_system_diagnostics_tracereporting",
|
|
639
|
-
module_doc,
|
|
640
|
-
0,
|
|
641
|
-
nullptr,
|
|
642
|
-
nullptr,
|
|
643
|
-
nullptr,
|
|
644
|
-
nullptr,
|
|
645
|
-
nullptr};
|
|
624
|
+
PyDoc_STRVAR(module_doc, "Windows.System.Diagnostics.TraceReporting");
|
|
646
625
|
|
|
626
|
+
static PyModuleDef module_def = {
|
|
627
|
+
PyModuleDef_HEAD_INIT,
|
|
628
|
+
"_winrt_windows_system_diagnostics_tracereporting",
|
|
629
|
+
module_doc,
|
|
630
|
+
0,
|
|
631
|
+
nullptr,
|
|
632
|
+
nullptr,
|
|
633
|
+
nullptr,
|
|
634
|
+
nullptr,
|
|
635
|
+
nullptr};
|
|
647
636
|
} // py::cpp::Windows::System::Diagnostics::TraceReporting
|
|
648
637
|
|
|
649
638
|
PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_tracereporting(void) noexcept
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,7 +9,7 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation.collections
|
|
12
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
13
13
|
|
|
14
14
|
from winrt.windows.system.diagnostics.tracereporting import PlatformDiagnosticActionState, PlatformDiagnosticEscalationType, PlatformDiagnosticEventBufferLatencies, PlatformDiagnosticTracePriority, PlatformDiagnosticTraceSlotState, PlatformDiagnosticTraceSlotType
|
|
15
15
|
|
|
@@ -19,17 +19,16 @@ Self = typing.TypeVar('Self')
|
|
|
19
19
|
class PlatformDiagnosticActions_Static(type):
|
|
20
20
|
def download_latest_settings_for_namespace(cls, partner: str, feature: str, is_scenario_namespace: bool, download_over_costed_network: bool, download_over_battery: bool, /) -> PlatformDiagnosticActionState: ...
|
|
21
21
|
def force_upload(cls, latency: PlatformDiagnosticEventBufferLatencies, upload_over_costed_network: bool, upload_over_battery: bool, /) -> PlatformDiagnosticActionState: ...
|
|
22
|
-
def get_active_scenario_list(cls) -> typing.Optional[
|
|
22
|
+
def get_active_scenario_list(cls) -> typing.Optional[windows_foundation_collections.IVectorView[_uuid.UUID]]: ...
|
|
23
23
|
def get_active_trace_runtime(cls, slot_type: PlatformDiagnosticTraceSlotType, /) -> typing.Optional[PlatformDiagnosticTraceRuntimeInfo]: ...
|
|
24
|
-
def get_known_trace_list(cls, slot_type: PlatformDiagnosticTraceSlotType, /) -> typing.Optional[
|
|
24
|
+
def get_known_trace_list(cls, slot_type: PlatformDiagnosticTraceSlotType, /) -> typing.Optional[windows_foundation_collections.IVectorView[PlatformDiagnosticTraceInfo]]: ...
|
|
25
25
|
def is_scenario_enabled(cls, scenario_id: _uuid.UUID, /) -> bool: ...
|
|
26
26
|
def is_trace_running(cls, slot_type: PlatformDiagnosticTraceSlotType, scenario_id: _uuid.UUID, trace_profile_hash: winrt.system.UInt64, /) -> PlatformDiagnosticTraceSlotState: ...
|
|
27
|
-
def try_escalate_scenario(cls, scenario_id: _uuid.UUID, escalation_type: PlatformDiagnosticEscalationType, output_directory: str, timestamp_output_directory: bool, force_escalation_upload: bool, triggers:
|
|
27
|
+
def try_escalate_scenario(cls, scenario_id: _uuid.UUID, escalation_type: PlatformDiagnosticEscalationType, output_directory: str, timestamp_output_directory: bool, force_escalation_upload: bool, triggers: windows_foundation_collections.IMapView[str, str], /) -> bool: ...
|
|
28
28
|
|
|
29
29
|
@typing.final
|
|
30
30
|
class PlatformDiagnosticActions(winrt.system.Object, metaclass=PlatformDiagnosticActions_Static):
|
|
31
|
-
|
|
32
|
-
def _from(obj: winrt.system.Object, /) -> PlatformDiagnosticActions: ...
|
|
31
|
+
pass
|
|
33
32
|
|
|
34
33
|
@typing.final
|
|
35
34
|
class PlatformDiagnosticTraceInfo(winrt.system.Object):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Diagnostics.TraceReporting
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,9 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|