]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - cddl/contrib/dtracetoolkit/Code/Python/func_slow.py
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / cddl / contrib / dtracetoolkit / Code / Python / func_slow.py
1 #!/usr/bin/python
2
3 def func_c():
4         print "Function C"
5         i = 0
6         while (i < 3000000):
7                 i = i + 1
8                 j = i + 1
9
10 def func_b():
11         print "Function B"
12         i = 0
13         while (i < 2000000):
14                 i = i + 1
15                 j = i + 1
16         func_c()
17
18 def func_a():
19         print "Function A"
20         i = 0
21         while (i < 1000000):
22                 i = i + 1
23                 j = i + 1
24         func_b()
25
26 func_a()