Server-Timing
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since â¨2023ë 3ìâ©.
* Some parts of this feature may have varying levels of support.
Server-Timing í¤ëë ìì²-ìëµ ì£¼ê¸°ì ê´í ì¬ë¬ ë©í¸ë¦ê³¼ ê·¸ ì¤ëª
ì ì ë¬íë ìí ì í©ëë¤. ì¬ì©ìì ë¸ë¼ì°ì ë´ ê°ë°ì ë구ë PerformanceServerTiming ì¸í°íì´ì¤ë¥¼ íµí´ ë°±ìë ìë²ì íì´ë° ë©í¸ë¦(ì: ë°ì´í°ë² ì´ì¤ ì½ê¸°/ì°ê¸°, CPU ì²ë¦¬ ìê°, íì¼ ìì¤í
ì ê·¼ ë±)ì íì¸í ì ìê² ëìì¤ëë¤.
| Header type | Response header |
|---|---|
| Forbidden header name | no |
구문
Server-Timing í¤ëì 구문ì ë©í¸ë¦ì ì¬ë¬ ê°ì§ ë°©ìì¼ë¡ ì ë¬í ì ìê² í´ì¤ëë¤. ìë² ë©í¸ë¦ ì´ë¦ë§ì¼ë¡, ê°ê³¼ í¨ê», ê°ê³¼ ì¤ëª
ê³¼ í¨ê» ëë ì¤ëª
ë§ì¼ë¡ ì ë¬í ì ììµëë¤.
ì´ í¤ëìë ì¼í를 ì¬ì©íì¬ ì¬ë¬ ë©í¸ë¦ì ëì´í ì ììµëë¤. ê° ë©í¸ë¦ì ì´ë¦ì ê°ì§ë©°, íìì ë°ë¼ 기ê°ê³¼ ì¤ëª ì ì¶ê°í ì ììµëë¤. ì´ë¤ ììë ì¸ë¯¸ì½ë¡ ì¼ë¡ ë¶ë¦¬ë©ëë¤.
ê¸°ê° êµ¬ì± ììë "dur=23.2"ì ê°ì´ "dur" ë¤ì "=", ê°ì´ ì¤ë 문ìì´ë¡ 구ì±ë©ëë¤.
ì¤ëª
êµ¬ì± ììë "desc=DB lookup"ì ê°ì´ "desc" ë¤ì "=", ê°ì´ ì¤ë 문ìì´ë¡ 구ì±ë©ëë¤.
ëª ì¸ìììë HTTP ì¤ë²í¤ë를 ì¤ì´ê¸° ìí´ ì´ë¦ê³¼ ì¤ëª ì ëëë¡ì´ë©´ ê°ê²°íê² íê³ , ì½ì´ë¥¼ ì¬ì©íê±°ë íìì ë°ë¼ ì íì ê°ì ìëµíë ê²ì´ ì¢ë¤ê³ ê¶ì¥íê³ ììµëë¤.
// Single metric without value
Server-Timing: missedCache
// Single metric with value
Server-Timing: cpu;dur=2.4
// Single metric with description and value
Server-Timing: cache;desc="Cache Read";dur=23.2
// Two metrics with value
Server-Timing: db;dur=53, app;dur=47.2
// Server-Timing as trailer
Trailer: Server-Timing
--- response body ---
Server-Timing: total;dur=123.4
ê°ì¸ì ë³´ ë³´í¸ ë° ë³´ì
Server-Timing í¤ëë ì í리ì¼ì´ì
ê³¼ ì¸íë¼ì 민ê°í ì 보를 ë
¸ì¶í ì ììµëë¤. ìë²ì¸¡ìì ì¸ì , ë구ìê² ì´ë¤ ë©í¸ë¦ì ë°íí ì§ë¥¼ ì ì´íë ê²ì ê³ ë ¤í´ì¼í©ëë¤. ì를 ë¤ì´ ë©í¸ë¦ì ì¸ì¦ ë°ì ì¬ì©ììê²ë§ ë³´ì¬ì£¼ê³ , ì¼ë° ì¬ì©ììê²ë ìë¬´ë° ì ë³´ë ì ê³µíì§ ìë ë°©ìì ì íí ì ììµëë¤.
PerformanceServerTiming ì¸í°íì´ì¤
ë¸ë¼ì°ì ì ê°ë°ì ë구ìì Server-Timing í¤ëì ë©í¸ë¦ì ë³¼ ì ìë ê²ë¿ë§ ìëë¼, PerformanceServerTiming ì¸í°íì´ì¤ë¥¼ íµí´ ë구ë JavaScriptìì ë©í¸ë¦ì ìëì¼ë¡ ìì§íê³ ë¶ìí ì ììµëë¤. ì´ ì¸í°íì´ì¤ë ëì¼í ì¶ì²ìë§ ì íëì´ ìì§ë§, Timing-Allow-Origin í¤ë를 íì©í´ ìë² ë©í¸ë¦ì ì ê·¼í ì ìë ëë©ì¸ë¤ì ëª
ìí ì ììµëë¤. ì´ ì¸í°íì´ì¤ë ì¼ë¶ ë¸ë¼ì°ì ììë ë³´ìë íê²½(HTTPS)ììë§ ì´ì© ê°ë¥í©ëë¤.
Server-Timing í¤ëì ê° êµ¬ì± ììë ë¤ìê³¼ ê°ì´ PerformanceServerTimingì ìì±ì ì°ê²°ë©ëë¤.
"name"->PerformanceServerTiming.name"dur"->PerformanceServerTiming.duration"desc"->PerformanceServerTiming.description
ëª ì¸ì
| Specification |
|---|
| Server Timing > # the-server-timing-header-field > |