Skip to content

Commit 8956eb5

Browse files
committed
trim: Update for --exact -> --auto
1 parent 8d0a37a commit 8956eb5

7 files changed

+10
-10
lines changed

cli/cli-trim-single-swapbuffers.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# First, trim the trace to the final glxSwapBuffers call
22

3-
apitrace trim --calls=27 tri.trace
3+
apitrace trim --auto --calls=27 tri.trace
44

55
# Then dump the image and compare to our reference
66

cli/cli-trim-unused-shaders.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ apitrace dump-images --calls=10,47,50,71,87,88 --call-nos=no -o ./glxsimple-ref/
88

99
# Trim to the same callset used to generate reference images
1010

11-
apitrace trim --calls=10,47,50,71,87,88 glxsimple.trace
11+
apitrace trim --auto --calls=10,47,50,71,87,88 glxsimple.trace
1212

1313
# Verify that we actually trimmed what we wanted to
1414

cli/cli-trim-unused-textures.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ apitrace dump-images --calls=10,31,50,71,87,88 --call-nos=no -o ./glxsimple-ref/
88

99
# Trim to the same callset used to generate reference images
1010

11-
apitrace trim --calls=10,31,50,71,87,88 glxsimple.trace
11+
apitrace trim --auto --calls=10,31,50,71,87,88 glxsimple.trace
1212

1313
# Verify that we actually trimmed what we wanted to
1414

traces/trim-frame-set.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
trim --frames=0-5/draw,0-5/frame --exact glxsimple.trace
1+
trim --frames=0-5/draw,0-5/frame glxsimple.trace
22
dump --verbose glxsimple-trim.trace
33
0 glClear(mask = GL_COLOR_BUFFER_BIT)
44
1 glXSwapBuffers(dpy = 0x236a280, drawable = 41943041)

traces/trim-head-by-frame.script

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
trim --frames=0 glxsimple.trace
2-
dump --verbose glxsimple-trim.trace
1+
trim -o trim-head-by-frame.src.trace --auto --frames=0 glxsimple.trace
2+
dump --verbose trim-head-by-frame.src.trace
33
0 glXChooseVisual(dpy = 0x236a280, screen = 0, attribList = {GLX_RGBA, GLX_RED_SIZE, GLX_RED_SIZE, GLX_GREEN_SIZE, GLX_RED_SIZE, GLX_BLUE_SIZE, GLX_RED_SIZE, GLX_ALPHA_SIZE, GLX_RED_SIZE, GLX_DOUBLEBUFFER, GLX_DEPTH_SIZE, 24, GLX_STENCIL_SIZE, GLX_RED_SIZE, GLX_X_VISUAL_TYPE, GLX_DIRECT_COLOR, 0}) = &{visual = 0x2374ef8, visualid = 34, screen = 0, depth = 24, c_class = 5, red_mask = 16711680, green_mask = 65280, blue_mask = 255, colormap_size = 256, bits_per_rgb = 8}
44
1 glXCreateContext(dpy = 0x236a280, vis = &{visual = 0x2374ef8, visualid = 34, screen = 0, depth = 24, c_class = 5, red_mask = 16711680, green_mask = 65280, blue_mask = 255, colormap_size = 256, bits_per_rgb = 8}, shareList = NULL, direct = True) = 0x2384330
55
2 glXMakeCurrent(dpy = 0x236a280, drawable = 41943041, ctx = 0x2384330) = True

traces/trim-head.script

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
trim --calls=0-843 glxsimple.trace
2-
dump --verbose glxsimple-trim.trace
1+
trim -o trim-head.src.trace --auto --calls=0-843 glxsimple.trace
2+
dump --verbose trim-head.src.trace
33
0 glXChooseVisual(dpy = 0x236a280, screen = 0, attribList = {GLX_RGBA, GLX_RED_SIZE, GLX_RED_SIZE, GLX_GREEN_SIZE, GLX_RED_SIZE, GLX_BLUE_SIZE, GLX_RED_SIZE, GLX_ALPHA_SIZE, GLX_RED_SIZE, GLX_DOUBLEBUFFER, GLX_DEPTH_SIZE, 24, GLX_STENCIL_SIZE, GLX_RED_SIZE, GLX_X_VISUAL_TYPE, GLX_DIRECT_COLOR, 0}) = &{visual = 0x2374ef8, visualid = 34, screen = 0, depth = 24, c_class = 5, red_mask = 16711680, green_mask = 65280, blue_mask = 255, colormap_size = 256, bits_per_rgb = 8}
44
1 glXCreateContext(dpy = 0x236a280, vis = &{visual = 0x2374ef8, visualid = 34, screen = 0, depth = 24, c_class = 5, red_mask = 16711680, green_mask = 65280, blue_mask = 255, colormap_size = 256, bits_per_rgb = 8}, shareList = NULL, direct = True) = 0x2384330
55
2 glXMakeCurrent(dpy = 0x236a280, drawable = 41943041, ctx = 0x2384330) = True

trim_stress_driver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2323
# SOFTWARE.
2424

25-
'''Stress test driver for apitrace trimp.'''
25+
'''Stress test driver for apitrace trim.'''
2626

2727
import os, errno, shutil, subprocess
2828

@@ -68,7 +68,7 @@ def trim_stress(self, trace_file):
6868

6969
for frame in range(frames):
7070
try:
71-
subprocess.check_call([self.options.apitrace, "trim", "--frame=%d" % (frame), "--output=" + trim_file, trace_file])
71+
subprocess.check_call([self.options.apitrace, "trim", "--auto", "--frame=%d" % (frame), "--output=" + trim_file, trace_file])
7272
except:
7373
print "An error occurred while trimming frame %d from %s" % (frame, trace_file)
7474
fail()

0 commit comments

Comments
 (0)