Skip to content

Instantly share code, notes, and snippets.

Application Comparer

  • A /Users/donblas/Programming/xamarin-macios/tests/dotnet/size-comparison/MySingleView/oldnet/bin/iPhone/Release/MySingleView.app
  • B /Users/donblas/Programming/xamarin-macios/tests/dotnet/size-comparison/MySingleView/dotnet/bin/iPhone/Release/net6.0-ios/ios-arm64/MySingleView.app
Directories / Files A B diff %
.//_CodeSignature
.//
    embedded.mobileprovision 9,594 9,594 0 0.0%
Building: XIBinding (Debug)
Build started 3/2/2018 4:10:24 PM.
Environment at start of build:
MSBUILD_EXE_PATH = /Users/donblas/Library/Caches/VisualStudio/7.0/MSBuild/16491_1/MonoDevelop.Projects.Formats.MSBuild.exe
XPC_SERVICE_NAME = com.microsoft.visual-studio.11756
LANGUAGE = en
MONO_GAC_PREFIX = /Applications/Visual Studio.app/Contents/Resources
XPC_FLAGS = 0x0
Apple_PubSub_Socket_Render = /private/tmp/com.apple.launchd.hiT6pOldEm/Render
@chamons
chamons / gist:e68afcb736daaee2177a2fcbef6c6842
Created January 29, 2018 19:50
Building a command line library
$ cat foo.cs
namespace Test
{
public class Adder
{
public static int Add (int a, int b) => a + b;
}
}
$ mcs foo.cs /t:library
@chamons
chamons / -
Created February 17, 2017 23:30
Microsoft (R) Build Engine version 15.1.0.0
Copyright (C) Microsoft Corporation. All rights reserved.
/Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/msbuild/15.0/bin/MSBuild.dll /v:diag 46RosTest.csproj
Build started 2/17/2017 5:30:38 PM.
Environment at start of build:
LANG = en_US.UTF-8
TERM = xterm-256color
SHLVL = 1
XPC_SERVICE_NAME = 0
Building Solution: SQLiteConnection (Debug|x86)
Build started 8/10/2016 1:41:14 PM.
__________________________________________________
Project "/Users/donblas/Downloads/SQLiteConnection/SQLiteConnection/SQLiteConnection.csproj" (Build target(s)):
Target _DetectAppManifest:
FindItemWithLogicalName Task
Items:
// A quick and dirty "how often is the GC being called, in 1/4 second increments
// Useful if you think your allocation pattern is hurting but can't load up in a real profiler
static int currentGC = 0;
static int currentCount = 0;
static void Main (string[] args)
{
Task.Factory.StartNew (() => {
while (true)
{
int now = GC.CollectionCount (0);
public static class NSArrayControllerPatch
{
static readonly IntPtr selSetFilterPredicate_Handle = ObjCRuntime.Selector.GetHandle ("setFilterPredicate:");
[System.Runtime.InteropServices.DllImport ("/usr/lib/libobjc.dylib", EntryPoint="objc_msgSend")]
public extern static void void_objc_msgSend_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1);
public static void SetFilterPredicate (this NSArrayController c, NSPredicate p)
{
void_objc_msgSend_IntPtr (c.Handle, selSetFilterPredicate_Handle, p == null ? IntPtr.Zero : p.Handle);
public static class NSArrayControllerPatch
{
static readonly IntPtr selSetFilterPredicate_Handle = ObjCRuntime.Selector.GetHandle ("setFilterPredicate:");
[System.Runtime.InteropServices.DllImport ("/usr/lib/libobjc.dylib", EntryPoint="objc_msgSend")]
public extern static void void_objc_msgSend_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1);
public static void SetFilterPredicate (this NSArrayController c, NSPredicate p)
{
void_objc_msgSend_IntPtr (c.Handle, selSetFilterPredicate_Handle, p == null ? IntPtr.Zero : p.Handle);
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 10
.globl _main
.align 4, 0x90
_main: ## @main
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp0:
.cfi_def_cfa_offset 16
.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 10
.globl _main
.align 4, 0x90
_main: ## @main
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp0:
.cfi_def_cfa_offset 16