본문 바로가기

전체 글

(245)
VxWorks 5.5에서 CPU 및 Memory 측정 방법 목차 1. CPU 사용량 측정 1.1 Profile Scope 사용 1.2 spyLib 사용 1.3 getCpuState 함수의 구현 2. Memory 사용량 측정 2.1 MemScope의 사용 2.2 memShow 커널 함수 사용 2.3 memPartInfoGet 커널 함수 사용 2.4 getMemoryState 함수의 구현 1. CPU 사용량 측정# 1.1 Profile Scope 사용# Profile Scope의 경우 Tornado의 RTI 툴의 하나로써 Tornado 구입시 선택할 수 있는 옵션 툴이다. 이 툴을 사용하면 사용자는 태스크 및 함수들의 CPU 사용량에 대해 매우 상세한 정보를 얻을 수 있다. 실행 화면은 다음과 같다. 각 필드에서 확인할 수 있는 정보들은 다음과 같다. Cumulat..
python 설치후 설치하는 패키지들 matplotlib numpy beautifulsoup
소스 라인 카운터 : CLOC 다운로드 받는 곳 : http://cloc.sourceforge.net/ http://cloc.sourceforge.net/#Options 에서 자세한 옵션에 대해 확인할 수 있다. 사용예 (파일별로 표시, csv 형식으로 출력, result.csv로 저장) cloc --by-file --csv --out=result.csv "소스위치"
MingW용 pthread 설치하기 MingW를 설치하면, pthread library가 설치되지 않으므로 pthread 기능을 사용할 수 없다. 본 글은 eclipse(CDT) + MingW에서 pthread를 사용하기 위한 설정법을 기술한다. eclipse(CDT)는 이미 설치되어 있다고 가정하고 있다. 1. 최신 pthread-win32를 받는다. http://sourceware.org/pthreads-win32/ 에서 받는다. 본 글에서는 pthreads-w32-2-8-0-release.exe 를 사용하였다. 2. 기 빌드된 파일들을 이동한다. 압축을 해제하면, 다음의 폴더구조를 확인할 수 있다. [압축해제폴더]\Pre-built.2
vim 소스분석툴로 활용하기 1. ctags 설치 우분투를 사용하고 있다면, sudo apt-get install exuberant-ctags 로 설치한다. 다른 플랫폼에서 사용할 것이라면, http://ctags.sourceforge.net 에서 파일을 받아 설치한다. 1.1 tags 파일 생성 소스가 있는 곳에서 ctags -R 로 하위 디렉토리 까지 검색하면서 tags 파일을 생성한다. tags 파일들은 아래와 같이, vim 설정파일에서 패스를 설정해 줄 수 있다. set tags=./tags,../tags,../include/tags,/usr/include/tags 1.2 vim에서 tags간 이동하기 명령 설명 :ts 해당하는 태그리스트를 보여준다. :tn 다음 태그 위치로 이동한다. :tp 이전 태그 위치로 이동한다. :..
리눅스에서 antonym(반의어)와 synonym(동의어)를 찾아보자 WordNet의 command line 명령인 wn을 설치한다. sudo apt-get install wordnet wn [찾을단어] -ants{n|v|a|r} 로 antonym을 찾는다. n은 명사(noun), v는 동사(verb), a는 형용사(adjective), r은 부사(adverbs) wn possible -antsa wn [찾을단어] -syns{n|v|a|r} 로 synonym을 찾는다. n은 명사, v는 동사, a는 형용사 wn possible -synsa 다양한 플랫폼에서 WordNet을 사용하고 싶다면 아래의 링크를 방문하기 바란다. http://wordnet.princeton.edu/wordnet/
/usr/share/dict/words 설치하기 아래의 명령을 써서 설치한다. sudo apt-get install wamerican-large 원하는 words 리스트는 아래와 같이 확인할 수 있다. pubuntu@pubuntu:/usr/share/dict$ apt-cache search wordlist | grep ^w | sort wamerican - American English dictionary words for /usr/share/dict wamerican-huge - American English dictionary words for /usr/share/dict wamerican-large - American English dictionary words for /usr/share/dict wamerican-small - American ..
Portable Ubuntu 설치후 해야할 일 (개발용) 0. 저장소를 daum으로 변경 sudo vim /etc/apt/source.list 파일에 다음의 내용을 추가한다. deb http://ftp.daum.net/ubuntu hardy main multiverse restricted universe deb-src http://ftp.daum.net/ubuntu hardy main multiverse restricted universe deb http://ftp.daum.net/ubuntu hardy-backports main multiverse restricted universe deb-src http://ftp.daum.net/ubuntu hardy-backports main multiverse restricted universe deb http://f..