vm_service 패키지는 Dart VM 서비스 프로토콜과 통신할 수 있는 Dart 라이브러리를 제공하여 개발자가 실행 중인 Dart 애플리케이션을 검사하고 제어할 수 있도록 합니다. Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼에서 실시간 디버깅, 성능 프로파일링, 런타임 인스펙션을 지원합니다. 이 패키지는 VM과 구조화된 데이터를 교환하기 위해 WebSocket 연결을 사용하며, 디버거, 프로파일러, 옵저버터리와 같은 도구에 필수적입니다. 주로 개발 및 분석 도구에서 사용되며, 최종 사용자 앱에서는 사용되지 않습니다.
사용 사례
Dart 애플리케이션 디버깅
성능 프로파일링
런타임 검사
툴링 통합
라이브 앱 모니터링
개발 환경 진단
주요 기능
WebSocket 기반 통신
모든 주요 플랫폼을 지원합니다
Dart DevTools와의 통합
실시간 데이터 스트리밍
구조화된 JSON-RPC 프로토콜
사용자 정의 작업을 위한 확장 가능
적합한 대상
Dart 도구 개발자
디버깅 프레임워크
프로파일링 유틸리티
IDE 통합
개발 환경 빌더
고려 사항
서비스 프로토콜이 활성화된 가상 머신을 실행해야 합니다
생산 앱 사용을 위한 것이 아님
네트워크 환경에서는 적절한 보안 처리가 필요합니다
디버깅 및 분석 워크플로우에 제한됨
변경될 수 있는 SDK 내부에 의존합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Dart
An approachable, portable, and productive language for high-quality apps on any platform
Dart is:
Approachable:
Develop with a strongly typed programming language that is consistent,
concise, and offers modern language features like null safety and patterns.
Portable:
Compile to ARM, x64, or RISC-V machine code for mobile, desktop, and backend.
Compile to JavaScript or WebAssembly for the web.
Productive:
Make changes iteratively: use hot reload to see the result instantly in your running app.
Diagnose app issues using DevTools.
Dart's flexible compiler technology lets you run Dart code in different ways,
depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more),
Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an
AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time
compiler (dartdevc) and a production time compiler (dart2js).
Browse pub.dev for more packages and libraries contributed
by the community and the Dart team.
Our API reference documentation is published at api.dart.dev,
based on the stable release. (We also publish docs from our
beta and dev channels,
as well as from the primary development branch).