SlideShare a Scribd company logo
Pro typescript.ch07.Exception, Memory, Performance
2
Pro typescript.ch07.Exception, Memory, Performance
4
 발생한 예외는 JavaScript Console에 표시됨
5
6
 Error를 상속받았지만 별 다른 구현 없음
-> Error 타입만으로 구분되는 것으로도 의미가 있음
 toString()를 구현하여 Console에 출력되는 메세지를 직접 정의
7
 우리가 작성한 코드에서 발생한 Error와
다른 곳에서 발생한 Error의 구분이 가능
8
 별도의 처리를 하지 않으면 프로그램 종료
 원할 경우 try – catch – finally 블록으로 감싸줘서 처리
9
 모든 종류의 Error에 대해서 처리
 비정상적인 상태로 계속 수행될 가능성이 있음
10
 처리 가능한 Error만 처리
 나머지는 다시 통과시키는 것이 바람직함
11
12
13
Pro typescript.ch07.Exception, Memory, Performance
15
 대부분 API들은 비동기 패턴으로 되어 있는 경우가 많음
 오류 발생을 대비해서 try - finally 블록을 이용해
자원해제를 보장해 주어야 함
16
17
18
Pro typescript.ch07.Exception, Memory, Performance
20
21
22
 여러번 반복하여 평균을 구하는 방법으로 측정
23
 2만번 수행 결과 : 2.73 ms
24
 2만번 수행 결과 : 214.45 ms
 Error가 있는 경우 수행 결과가 바뀔 수 있음
Pro typescript.ch07.Exception, Memory, Performance
26
https://goo.gl/Ptw1aI

More Related Content

PPTX
Javascript 박재은
PDF
함수형사고 3장 양도하라
PDF
7가지 동시성 모델-2장
PDF
[실전 윈도우 디버깅] 13 포스트모템 디버깅
PPTX
[Pl in c++] 11. chapter
PDF
01 윈도우프로그램 들어가기
PDF
Ruby_01_Ruby Basic
PDF
08 부모윈도우 자식윈도우
Javascript 박재은
함수형사고 3장 양도하라
7가지 동시성 모델-2장
[실전 윈도우 디버깅] 13 포스트모템 디버깅
[Pl in c++] 11. chapter
01 윈도우프로그램 들어가기
Ruby_01_Ruby Basic
08 부모윈도우 자식윈도우

Viewers also liked (14)

PDF
Concurrency in action - chapter 5
PDF
Concurrency in action - chapter 7
PDF
[C++ korea] effective modern c++ study item 2 understanding auto type deduc...
PDF
Effective c++ chapter 1,2 요약
PDF
[C++ korea] Effective Modern C++ study item 19 use shared ptr for shared owne...
PPTX
Effective c++ 챕터 2 정리
PPTX
Effective c++ 정리 chapter 8
PPTX
Effective C++ Chaper 1
PDF
Visual studio 사용 설명서(고급)
PPTX
Effective c++ 1
PDF
C++ Concurrency in Action 9-2 Interrupting threads
PPTX
Gpg study5.5
PPTX
Next 게임 실전 프로젝트 슬라이드
PPT
sungmin slide
Concurrency in action - chapter 5
Concurrency in action - chapter 7
[C++ korea] effective modern c++ study item 2 understanding auto type deduc...
Effective c++ chapter 1,2 요약
[C++ korea] Effective Modern C++ study item 19 use shared ptr for shared owne...
Effective c++ 챕터 2 정리
Effective c++ 정리 chapter 8
Effective C++ Chaper 1
Visual studio 사용 설명서(고급)
Effective c++ 1
C++ Concurrency in Action 9-2 Interrupting threads
Gpg study5.5
Next 게임 실전 프로젝트 슬라이드
sungmin slide
Ad

More from Seok-joon Yun (20)

PDF
Retrospective.2020 03
PDF
Sprint & Jira
PPTX
Eks.introduce.v2
PDF
Eks.introduce
PDF
AWS DEV DAY SEOUL 2017 Buliding Serverless Web App - 직방 Image Converter
PDF
아파트 시세,어쩌다 머신러닝까지
PPTX
Doing math with python.ch07
PPTX
Doing math with python.ch06
PPTX
Doing math with python.ch05
PPTX
Doing math with python.ch04
PPTX
Doing math with python.ch03
PPTX
Doing mathwithpython.ch02
PPTX
Doing math with python.ch01
PPTX
Pro typescript.ch03.Object Orientation in TypeScript
PDF
Welcome to Modern C++
PDF
[2015-07-20-윤석준] Oracle 성능 관리 2
PDF
[2015-07-10-윤석준] Oracle 성능 관리 & v$sysstat
PDF
[2015 07-06-윤석준] Oracle 성능 최적화 및 품질 고도화 4
PDF
오렌지6.0 교육자료
PDF
[2015-06-26] Oracle 성능 최적화 및 품질 고도화 3
Retrospective.2020 03
Sprint & Jira
Eks.introduce.v2
Eks.introduce
AWS DEV DAY SEOUL 2017 Buliding Serverless Web App - 직방 Image Converter
아파트 시세,어쩌다 머신러닝까지
Doing math with python.ch07
Doing math with python.ch06
Doing math with python.ch05
Doing math with python.ch04
Doing math with python.ch03
Doing mathwithpython.ch02
Doing math with python.ch01
Pro typescript.ch03.Object Orientation in TypeScript
Welcome to Modern C++
[2015-07-20-윤석준] Oracle 성능 관리 2
[2015-07-10-윤석준] Oracle 성능 관리 & v$sysstat
[2015 07-06-윤석준] Oracle 성능 최적화 및 품질 고도화 4
오렌지6.0 교육자료
[2015-06-26] Oracle 성능 최적화 및 품질 고도화 3
Ad

Pro typescript.ch07.Exception, Memory, Performance