
리탭
구독자 33명구독중 14명
알팀장님과 함께하는 즐거운 합법도박 라이프
데이터 10만개정도 처리하는데 세월아 네월아 하고있길래
아니도대체뭐가문제지 하고 구간마다 시간을 기록해서 더해서 합해서 어디서 차가막히는지 찾으려하는데
이걸 자주 반복하게되는 것 같아 이미 쓰던 디버깅에 도움을 주는 클래스를 좀 수정해 보았다
from datetime import datetime, timezone
import inspect
import time
def QDEBUG(comment, variable):
qDebug = DEBUGREPORT()
qDebug.GING = True
qDebug.report(comment, variable)
class DEBUGREPORT:
def __init__(self, GING=False, TEMP=False, timeCounterLabel=None):
self.GING = GING # variable name can be DEBUG so that expression as DEBUG.GING == True can be used
self.TEMP = TEMP
self.ERR = "FLAG_ERROR_DEBUGREPORT"
if timeCounterLabel == None:
timeCounterLabel = inspect.currentframe().f_back.f_lineno
self._timecounter = {timeCounterLabel: 0}
self._lastRecordedTime = time.perf_counter()
def timeMarker(self, flag_reset=False, timeCounterLabel=None):
if flag_reset:
self._timecounter = {}
if timeCounterLabel == None:
timeCounterLabel = inspect.currentframe().f_back.f_lineno
# Get the current frame, then the caller's frame
# Get the caller's line number
currentTime = time.perf_counter()
if timeCounterLabel in self._timecounter:
...




리탭님은, 이전에 프로그래밍 관련 일을 하셨던 건가요? 아니면 손매매 하시다가 프로그래밍 배워서 퀀트 시작하신 건가요?

전문가는 아닌데 프로그래밍 경험이 쪼금 있었습니당 처음부터 시스템트레이딩 쪽으로 생각했었는데 동기부여가 잘 안돼서(자꾸 준비 및 계획 및 아이디어쌓기 연구 등등만 하고 실전에 안들어가서)+경험쌓기겸 손매매를 시작했었던가...