Question: I have a piece of code like below which is used to send a list of IP addresses to an API call.

```
body = {'cID': id, 'dbType': params['db-type'].upper(), 'cidrList': eval(params['--cidr-list'])}
print(json.dumps(body))
conn.request("POST", "/Link/to/API", body=json.dumps(body), headers=header)
check_resp(200)
logger.info("Rules changed successfully")

```

However, when I call this code using the below params, it fails.

```
--cidr-list ['10.20.0.0/32','10.30.0.0/32']

```

It works when I use the below.

```
--cidr-list [\"10.20.0.0/32\",\"10.30.0.0/32\"]

```

So basically when I use `\"` to wrap each item of the list, it is parsed as single quotes. How do I change the code so that it accepts input 1? I'm new to Python and I would appreciate if you could explain the logic behind it as well. Thanks in advance.

Answer: 
You can use Microsoft built-in [profiling and performance tools](https://learn.microsoft.com/en-us/windows/uwp/debug-test-perf/tools-for-profiling-and-performance) or 3rd-party profiler like [YourKit .NET Profiler](https://www.yourkit.com/.net/profiler/). 

The end-user activity for the application can be simulated either in the application code itself or using 3rd-party tools like [Windows Application Driver](https://github.com/microsoft/WinAppDriver) or [Coded UI test](https://learn.microsoft.com/en-us/visualstudio/test/test-uwp-app-with-coded-ui-test?view=vs-2019)

If you will need to simulate hundreds/thousands of applications communicating with the backend to load test the backend - you will need a load testing tool which supports protocol(s) used by your UWP application, check out [How to Run Performance Tests of Desktop Applications Using JMeter](https://www.blazemeter.com/blog/how-run-performance-tests-desktop-applications-using-jmeter/) for example test setup
You can add code that logs messages and events at certain points while your app runs. When you're testing your app, you can use profiling tools such as **Windows Performance Recorder** and **Windows Performance Analyzer** (both are included in the Windows Performance Toolkit) to create and view a report about your app's performance. UWP provides logging APIs, they are part of the `Windows.Foundation.Diagnostics` namespace. For more details, you can refer to this [document](https://learn.microsoft.com/en-US/windows/uwp/debug-test-perf/planning-and-measuring-performance#instrument-for-performance).

In addition, you can also analyze the performance of UWP apps using [Visual Studio diagnostic tools](https://learn.microsoft.com/en-us/visualstudio/profiling/profiling-feature-tour?view=vs-2019), e.g. CPU usage, memory leak, etc.