mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
3d64d83f98
This adds a new target 'SpeedTest', which just loads in a repository and displays how long it takes to load the revision. This is handy for testing the speed of the revwalking mechanism
23 lines
630 B
Objective-C
23 lines
630 B
Objective-C
//
|
|
// speedtest.m
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 20-11-08.
|
|
// Copyright 2008 Pieter de Bie. All rights reserved.
|
|
//
|
|
|
|
#import "speedtest.h"
|
|
#import "PBGitRepository.h"
|
|
#import "PBGitRevList.h"
|
|
|
|
int main()
|
|
{
|
|
PBGitRepository *repo = [[PBGitRepository alloc] initWithURL:[NSURL URLWithString:@"file:///Users/pieter/projects/git"]];
|
|
PBGitRevList *revList = [[PBGitRevList alloc] initWithRepository:repo];
|
|
PBGitRevSpecifier *revSpecifier = [[PBGitRevSpecifier alloc] initWithParameters:[NSArray arrayWithObject:@"master"]];
|
|
|
|
//[repo reloadRefs];
|
|
[revList walkRevisionListWithSpecifier:revSpecifier];
|
|
|
|
return 0;
|
|
} |