1 00:00:00,000 --> 00:00:02,220 ‫So the code guru profiler functions 2 00:00:02,220 --> 00:00:04,890 ‫thanks to an agent and we can configure that agent 3 00:00:04,890 --> 00:00:06,240 ‫to fine tune it. 4 00:00:06,240 --> 00:00:08,520 ‫The first one is MaxStackDepth. 5 00:00:08,520 --> 00:00:11,400 ‫So this is the amount of code that is going to be 6 00:00:11,400 --> 00:00:13,170 ‫represented in the profile. 7 00:00:13,170 --> 00:00:15,390 ‫So for example, if you have a method A 8 00:00:15,390 --> 00:00:18,420 ‫and then method A calls method B, which codes method C 9 00:00:18,420 --> 00:00:21,780 ‫and then method D, then we count it as a depth of four. 10 00:00:21,780 --> 00:00:24,900 ‫So if you set MaxStackDepth to two 11 00:00:24,900 --> 00:00:27,300 ‫then the profiler is only going to evaluate 12 00:00:27,300 --> 00:00:30,120 ‫and profile method A and method B. 13 00:00:30,120 --> 00:00:31,410 ‫So it's important for you to remember this 14 00:00:31,410 --> 00:00:32,940 ‫because if you wanna go very deep 15 00:00:32,940 --> 00:00:35,010 ‫you need to increase that parameter. 16 00:00:35,010 --> 00:00:38,280 ‫Memory usage limit percent is how much memory is allowed 17 00:00:38,280 --> 00:00:40,230 ‫to be used by the profiler. 18 00:00:40,230 --> 00:00:42,900 ‫Minimum time for reporting in milliseconds 19 00:00:42,900 --> 00:00:45,780 ‫is the minimum time between sending reports. 20 00:00:45,780 --> 00:00:49,740 ‫So of course you can increase the reporting interval 21 00:00:49,740 --> 00:00:52,170 ‫in milliseconds and it will be bounded by the minimum. 22 00:00:52,170 --> 00:00:55,170 ‫And so the reporting interval in milliseconds 23 00:00:55,170 --> 00:00:59,040 ‫tells the agent how often to report the profiling 24 00:00:59,040 --> 00:01:00,210 ‫it has done. 25 00:01:00,210 --> 00:01:03,510 ‫We also have the sampling interval in milliseconds. 26 00:01:03,510 --> 00:01:04,830 ‫So here this is important. 27 00:01:04,830 --> 00:01:08,040 ‫This is the sampling interval used to profile samples. 28 00:01:08,040 --> 00:01:10,950 ‫And so if you set it to a lower value 29 00:01:10,950 --> 00:01:13,290 ‫you're going to get more and more samplings 30 00:01:13,290 --> 00:01:15,210 ‫and so you're going to have a higher sampling rate. 31 00:01:15,210 --> 00:01:17,820 ‫And so you may catch more functions 32 00:01:17,820 --> 00:01:19,770 ‫or more methods being called. 33 00:01:19,770 --> 00:01:21,960 ‫So you don't have to remember all of these of course 34 00:01:21,960 --> 00:01:24,390 ‫but just now from seeing the name of it 35 00:01:24,390 --> 00:01:26,520 ‫if it comes up at the exam, you should be able to 36 00:01:26,520 --> 00:01:30,300 ‫understand how this setting influences the code guru agent 37 00:01:30,300 --> 00:01:33,810 ‫and then you can answer the question correctly at the exam. 38 00:01:33,810 --> 00:01:34,980 ‫Alright, that's it for this lecture. 39 00:01:34,980 --> 00:01:37,983 ‫I hope you liked it and I will see you in the next lecture.