Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Files

Profile files are attached 

opsim-mysql.prof 

opsim-sqlite.prof 

opsim-sqlite-sync-off.prof

mysql-1year-stats.out

sqlite-1year-stats.out

sqlite-1year-sync-off-stats.out

1 year profile run running OpSim with MySQL

...

131578848  213.199    0.000  388.751    0.000 Instrument.py:939(GetDelayFor_Filter)

 

1 year profile run running OpSim with sqlite with snynchronous=off

[hewelhog:~/LSST/opsim-profile] schandra% cat sqlite-1year-sync-off-stats.out 
=========== Top 50 Cumulative ============
Thu Jul 31 19:21:52 2014    opsim-sqlite-sync-off.prof
 
         17825688454 function calls (16168875566 primitive calls) in 32981.465 seconds
 
   Ordered by: cumulative time
   List reduced from 750 to 50 due to restriction <50>
 
   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    0.007    0.007 32982.281 32982.281 main.py:8(<module>)
        1    0.001    0.001 32982.234 32982.234 main.py:72(startLsst)
        1    9.818    9.818 31897.593 31897.593 Simulator.py:230(start)
   267199  957.684    0.004 18880.002    0.071 ObsScheduler.py:372(suggestObservation)
131850595  764.856    0.000 13540.951    0.000 Instrument.py:1132(GetDelayForTarget)
131517129  246.106    0.000 12023.120    0.000 Instrument.py:1046(GetSlewDelay)
1707658784/131358368 3981.701    0.000 9630.541    0.000 Instrument.py:1006(GetDelayAfter)
  4086249   26.164    0.000 7706.445    0.002 Database.py:135(executeSQL)
   267172   42.503    0.000 7316.699    0.027 ObsScheduler.py:634(closeObservation)
  4086251 6241.882    0.002 6241.882    0.002 {method 'commit' of 'sqlite3.Connection' objects}
      365    0.014    0.000 5533.364   15.160 Simulator.py:625(startNight)
      365    0.063    0.000 5532.356   15.157 ObsScheduler.py:173(startNight)
      365    0.047    0.000 5169.081   14.162 SchedulingData.py:341(startNight)
      365 1658.819    4.545 4132.434   11.322 SchedulingData.py:368(computeTargetData)
    26890 1319.609    0.049 3932.835    0.146 TransSubSeqProp.py:349(suggestObs)
  1884915   28.639    0.000 3184.162    0.002 Database.py:448(addSlewActivities)
919508576 2451.861    0.000 2862.658    0.000 Instrument.py:808(TimeAccelMove)
131517129  513.487    0.000 2146.356    0.000 Instrument.py:465(SetClosestState)
 78292114 1085.336    0.000 1707.482    0.000 AstronomicalSky.py:563(getSkyBrightness)
  4086251 1376.806    0.000 1376.806    0.000 {method 'execute' of 'sqlite3.Cursor' objects}
262716736  413.436    0.000 1219.151    0.000 Instrument.py:893(GetDelayFor_TelAz)
262716736  400.085    0.000 1168.588    0.000 Instrument.py:880(GetDelayFor_TelAlt)
 59724292  542.825    0.000 1089.478    0.000 SuperSequence.py:774(RankTimeWindow)
        1    0.000    0.000 1081.402 1081.402 Simulator.py:809(closeProposals)
        1    0.000    0.000 1081.402 1081.402 ObsScheduler.py:868(closeProposals)
        1    1.925    1.925 1081.402 1081.402 TransSubSeqProp.py:871(closeProposal)
      365  753.529    2.064 1036.597    2.840 SchedulingData.py:171(updateLookAheadWindow)
   267172    4.262    0.000  996.370    0.004 Database.py:308(addSeqHistoryObsHistory)
   267172    8.819    0.000  981.450    0.004 Database.py:372(addObservation)
   534344   12.616    0.000  907.897    0.002 Database.py:476(addSlewState)
131358368  313.483    0.000  793.647    0.000 Instrument.py:857(GetDelayFor_DomAz)
263634896  576.088    0.000  790.337    0.000 Instrument.py:120(Set)
311736531  587.543    0.000  729.808    0.000 Instrument.py:335(GetShortestDistanceWithWrap)
131358368  215.538    0.000  711.133    0.000 Instrument.py:843(GetDelayFor_DomAlt)
131517129  199.142    0.000  709.446    0.000 Instrument.py:461(SetPosition)
   267172    1.514    0.000  637.503    0.002 WLprop.py:331(closeObservation)
   267172    7.643    0.000  635.988    0.002 TransSubSeqProp.py:748(closeObservation)
   267172   30.788    0.000  588.837    0.002 Proposal.py:744(closeObservation)
131358368  220.616    0.000  574.724    0.000 Instrument.py:926(GetDelayFor_Rotator)
   267172   10.793    0.000  534.081    0.002 Database.py:423(addSlewHistory)
131358368  390.247    0.000  514.125    0.000 Instrument.py:914(GetDelayFor_TelOpticsCL)
 78024942   90.989    0.000  510.661    0.000 AstronomicalSky.py:773(airmasst)
131517129  157.137    0.000  510.304    0.000 Instrument.py:144(Copy)
 20188954  333.085    0.000  486.722    0.000 Filters.py:205(computeFilterSeeing)
132051152  106.387    0.000  464.198    0.000 Instrument.py:372(GetTelAzDistanceWithWrap)
   267172    3.868    0.000  464.176    0.002 Database.py:332(addObsHistoryProposal)
   267172    5.482    0.000  436.798    0.002 Database.py:461(addSlewMaxSpeeds)
1098853057  393.682    0.000  393.682    0.000 {divmod}
   267172   11.265    0.000  388.791    0.001 Instrument.py:1196(Observe)
131358368  209.321    0.000  387.572    0.000 Instrument.py:939(GetDelayFor_Filter)