있는 특별한 타이머다. 이 타이머는 작업이 완료되기 전에는 경과 시간을 기록하지 않는다. 장
기 작업 타이머는 다음과 같이 여러 통계를 제공한다.
●
활성
active
: 현재 진행 중인 작업의 개수
●
총 시간
total
duration
: 측정 코드 블록을 실행하고 있는 모든 작업의 실행 시간 합계
●
최대
max
: 가장 오래 진행되고 있는 작업의 실행 시간. 가장 오래 전에 시작된 작업 중 아직 실행 중인 작
업의 총 실행 시간을 나타낸다.
●
히스토그램
histogram
: 진행 중인 작업의 이산화
discretized
된 버킷 집합
●
백분위수
percentile
: 진행 중인 작업의 실행 시간으로 사전 계산한 백분위수
[그림
2
-
19
]는 장기 작업 타이머가 타이머와 근본적으로 어떻게 다른지 보여준다. 작업이 시
작되면 총 기간이 늘어나지만 작업이 완료되면 더 이상 늘어나지 않는다. 그에 비해 타이머로
측정한 작업은 완료되기
전
에는 보고되지 않는다. 시간
t
=
3
에서 총 기간이
1
이 아니라
2
만큼
증가했다는 점이 중요하다.
t
=
2
에서 시작한 두 개의 작업이 모두 지속적으로
1
을 더하기 때문
이다.
t
=
4
에서 두 작업이 모두 완료되면 총 기간과 활성화 개수가 모두
0
으로 떨어진다.
장기 작업 타이머 평균은 타이머 평균과 의미가 다르다. 현 시점에서 실행 중인 활성 작업 시간
의 평균이다. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.