2016-11-30 10 views
2

Asciidoc에서 일부 테이블 형식 데이터를 레이아웃하는 방법에 대한 쿼리가 있습니다.세미 테이블 형식의 데이터에 대한 Asciidoc 형식 옵션

The heap parameters are set up as shown, and we assume that they do not change over time. 
Of course a real application would normally have a dynamically resizing heap, but this 
example is to illustrate a simple case study. 

---- 
Overall heap size: 2G 

Old generation: 1.5G 

Young generation: 500M 
     Eden:  400M 
     S1:   50M 
     S2:   50M 
---- 

After the application has reached its steady state, the following GC metrics 
are observed: 

---- 
Allocation rate: 100M/s 
Young GC time:  0ms 
Full GC time:  100ms 
Object lifetime: 200ms 
---- 

So at steady state, a young GC will occur every 4 seconds. 

내 질문은 이것이다 :

내가 현재 가지고있는 그대로 Asciidoc 주변 이야기 (이것은 매우 단순화 된 사례 연구를 사용하여, 자바 GC에 대한 부분에서의) 일부 프레임 일반 텍스트를 포함하여이있다 :이 방법이 이것을 배치하는 유일한 방법입니까? 다른 방법은 무엇입니까? 필자는 합리적으로 능숙한 Asciidoc 사용자이지만 새로운 기능에 걸림돌이되어서 내가 택할 수있는 대체 레이아웃 방법이 있다고 생각하게 만듭니다.

+0

어떤 툴체인을 사용하십니까? Gradle based? – rdmueller

+0

안녕하세요 - 툴체인이 중요한 이유는 모르겠지만 주요 대상은 Atlas이고 AsciidocFX는 개발 환경으로 사용합니다. – kittylyst

+0

내가 gradle 때문에, asciidoc에 대한 확장을 쓰는 것이 쉽습니다. ... – rdmueller

답변

2

데이터를 좋은 방법으로 서식을 지정하려는 경우 데이터를 테이블 형식으로 지정할 수 있습니다. 형식으로 '분리. 자 구분'(dsv)을 지정하면 멋진 표가됩니다.

또한, 당신은 단지 :은 (두 번째 예)로 사용하는 방법을 확인하려면 구분 기호를 지정할 수 있습니다

The heap parameters are set up as shown, and we assume that they do not change over time. 
Of course a real application would normally have a dynamically resizing heap, but this 
example is to illustrate a simple case study. 

[format="dsv"] 
|==== 
Overall heap size: 2G 

Old generation: 1.5G 

Young generation: 500M 
     Eden:  400M 
     S1:   50M 
     S2:   50M 
|==== 

After the application has reached its steady state, the following GC metrics 
are observed: 

[format="dsv",separator=":"] 
|==== 
Allocation rate: 100M/s 
Young GC time:  0ms 
Full GC time:  100ms 
Object lifetime: 200ms 
|==== 

So at steady state, a young GC will occur every 4 seconds. 

를 이것은 당신이 또한 정렬, 폭, 다른 셀 속성에서 속성을 지정할 수 있습니다 테이블의 : http://www.methods.co.nz/asciidoc/chunked/ch23.html

이것은 당신이 어디에서 찾을 수 있습니까?