source: dassmodus/trunk/dassmodus/nosferatu/nosferatu/tools/profiling.py@ 953

Last change on this file since 953 was 953, checked in by pstorz, on Sep 28, 2011 at 11:32:32 AM

first checkin

File size: 784 bytes
Line 
1
2# $Id: unittests.py 11266 2010-10-17 16:06:34Z pstorz $
3
4import logging
5logging.basicConfig(level=logging.ERROR,
6 format='%(asctime)s %(levelname)s \t (%(module)s:%(lineno)d) %(message)s ',
7 #filename='vanHelsing.log',
8 filemode='w')
9
10import cProfile
11
12import nosferatu.bacresources as bacresources
13#import unittest
14import os
15
16
17
18def prof():
19 '''
20 setup our test configuration
21 '''
22 dc = bacresources.DataCenter('regression/dassIT.dmdz')
23 #print os.getcwdu()
24 #configstring = open('regression/bacula-dir.conf').read()
25 #self.DirConf = bacresources.DirectorConfig(configstring)
26 #DirConf = self.dc.directors[0]
27 #print 'cwd: ' + os.getcwd()
28
29
30
31cProfile.run('prof()')
32
33
Note: See TracBrowser for help on using the repository browser.